Giter Club home page Giter Club logo

oven's Introduction

Latest Version License

Setup your favourite framework with 1 file and 1 click!

IMPORTANT: This is not a deployment script, it's aimed to help developers installing CakePHP for the first time and get a working development environment up and running in seconds. Production environments should consider several other factors, like file permissions, virtualhost configuration, etc.

  • Upload oven.php file to your host/server
  • Access oven.php on your host via your favourite browser such as http://localhost/oven.php
  • Click the big oven knob in the middle of the page
  • CakePHP will auto install and ready to go

Requirements

  • PHP 5.5.9+

Support

For bugs and feature requests, please use the issues section of this repository.

Commercial support is also available, contact us for more information.

Contributing

This repository follows the CakeDC Plugin Standard. If you'd like to contribute new features, enhancements or bug fixes to the plugin, please read our Contribution Guidelines for detailed instructions.

License

Copyright 2017 Cake Development Corporation (CakeDC). All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

oven's People

Contributors

agarzon avatar andrej-griniuk avatar dereuromark avatar didos avatar inoas avatar ravage84 avatar rochamarcelo avatar steinkel avatar stork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oven's Issues

Offer to install some of the popular plugins

it would be nice to also execute composer commands and bin/cake plugin load for a list of popular plugins that the user can choose from. Some suggestions:

  • bootstrap-ui
  • cakedec/users
  • crud and crud-api
  • middleware authentication

Error while creating project The Project Directory is Empty

Checking path...
C:\xampp\htdocs\oven-master\cake directory is writable
Checking PHP version...
Your version of PHP is 5.5.9 or higher (detected 7.1.33).
Checking mbstring extension...
Your version of PHP has the mbstring extension loaded.
Checking openssl/mcrypt extension...
Your version of PHP has the openssl extension loaded.
Checking intl extension...
Your version of PHP has the intl extension loaded.
Installing composer...
Composer version 1.9.1 2019-11-01 17:20:17

Creating CakePHP project...
Error while creating project

Update button

A small update button in the corner would be nice - to allow one-click updating of the oven.php file (or later a phar etc).
Currently one either has to clone and git pull - or manually copy and paste the file, e.g. via CLI or IDE again.

In the future it could also check and report if there is a new file available.

Can't install to the root folder!

Try to install to the root folder http://localhost , not http://localhost/app
Can't install.

Try to install with app dir empty value and get the error:

Warning: require(/home/vamshop-en/www/vendor/autoload.php): failed to open stream: No such file or directory in /home/vamshop-en/www/webroot/index.php on line 27

How to install to the root folder?!

screenshot from 2017-06-25 22-55-57
screenshot from 2017-06-25 22-56-25

Database configuration fails when host is numeric

In the DB config form fields, if you input a host that is numeric, then app.php configuration gets mangled at line 220. I'm assuming the problem is the pattern in DATASOURCE_REGEX, line 32 in oven.php. See screenshots below.

Error:

After attempting an IP, then a Rackspace host with a numeric sub-domain, I tried simply "42" to see what would happen. Screenshot is result. All attempts resulted in similar code removal.

error

Default:

default

Update for 4.x ๐Ÿ“

When installing this plugin, using Oven, it fails, when using composer it doesn't fails but, I need to use Configure::load(); in bootstrap.php instead of $this->addPlugin(); in Application.php

Centralized installation location

I see some great suggestions here, like Db configuration and plugins installation. In addition it would be a huge plus if I can have this cloned in a fixed location somewhere within my development server (ie. /var/www/cakephp-oven/oven.php) and allow me to create many CakePHP installs from this location. The idea is to have it ask me where I would like my project to be created, like /var/www/website1.com or /var/www/website2.com.

intl.so missing in PHP

I don't seem to be able to get intl to work on high sierra/mac os x. Not through brew, nor manual compiling, nor xampp/mamp etc. I know it's not an oven nor a cakephp issue, but maybe it's possible to work without any intl?

Use system wide Composer

Is it possible to use system wide installed composer instead of installing it each time we run the oven.php?

Undefined method Cake\Utility\Security::setSalt()

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.4.13.

  • Platform and Target: Apache 2.4.18, Xampp Windows, PHP 7.0.8.

What you did

Copy oven.php. Installed choosing version 3.4.13.

What happened

I got this error browsing the site: Call to undefined method Cake\Utility\Security::setSalt()

What you expected to happen

The welcome page should be displayed.

Error installing package cakephp/cakephp and some others

  • bug
  • CakePHP Application Skeleton Version: f7f5e46684527cbdbf34f295c1cdef9c62e253a7.zip
  • Platform and Target: apache2 @ osx @ mysql

What I did

I've filled in my composer path obtained by which composer
I did autoupdate on him just before running oven.php

What happened

some of the packages are installed ok, some not:
screen shot 2017-04-06 at 10 55 59

if I change the owner of app dir from _www to my own user, then I delete the composer.lock file and run
composer require cakephp/cakephp:~3.4-stable by hand, it installs ok:

Jane2:...~/src/vd/app > composer require cakephp/cakephp:~3.4-stable
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing zendframework/zend-diactoros (1.3.10): Downloading (100%)
  - Installing aura/intl (3.0.0): Downloading (100%)
  - Installing cakephp/chronos (1.1.1): Downloading (100%)
  - Installing cakephp/cakephp (3.4.4): Downloading (100%)
cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug())
Writing lock file
Generating autoload files

Installation issues

I decided to download CakePHP for the first time but it didn't work out a bit. At first I downloaded it via Composer in the command line, but it still said that the plugins were not enabled, even though they were, I had created the project but I couldn't view it normally like in my browser on Localhost, so I decided to use Oven. With the help of Oven, I almost succeeded until the end of the installation "Error installing package cakephp/plugin-installer" was displayed and the continuation of the installation was not successful. I'm using CakePHP version 4.0.10 and PHP version 8.1.6, mbstring, openssl and intl extensions are up and running fine, Composer version is 2.4.3. I really don't know where the problem could be.

The text that was written after the failed installation ended:
Checking path...
/opt/lampp/htdocs/app directory is writable
Checking PHP version...
Your version of PHP is 5.5.9 or higher (detected 8.1.6).
Checking mbstring extension...
Your version of PHP has the mbstring extension loaded.
Checking openssl/mcrypt extension...
Your version of PHP has the openssl extension loaded.
Checking intl extension...
Your version of PHP has the intl extension loaded.
Installing composer...
Composer version 2.4.3 2022-10-14 16:56:41

Creating CakePHP project...
Creating a "cakephp/app:~4.0.0" project at "./app"
Info from https://repo.packagist.org: #StandWithUkraine
Installing cakephp/app (4.0.4)

  • Installing cakephp/app (4.0.4): Extracting archive
    Created project in /opt/lampp/htdocs/app

Installing cakephp/cakephp:~4.0.10...
./composer.json has been updated
Running composer update cakephp/cakephp
Loading composer repositories with package information
Updating dependencies
Lock file operations: 14 installs, 0 updates, 0 removals

  • Locking aura/intl (3.0.1)
  • Locking cakephp/cakephp (4.0.10)
  • Locking cakephp/chronos (2.3.0)
  • Locking composer/ca-bundle (1.3.4)
  • Locking laminas/laminas-diactoros (2.19.0)
  • Locking laminas/laminas-httphandlerrunner (1.5.0)
  • Locking laminas/laminas-zendframework-bridge (1.6.1)
  • Locking psr/http-client (1.0.1)
  • Locking psr/http-factory (1.0.1)
  • Locking psr/http-message (1.0.1)
  • Locking psr/http-server-handler (1.0.1)
  • Locking psr/http-server-middleware (1.0.1)
  • Locking psr/log (1.1.4)
  • Locking psr/simple-cache (1.0.1)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 14 installs, 0 updates, 0 removals
  • Installing psr/simple-cache (1.0.1): Extracting archive
  • Installing psr/log (1.1.4): Extracting archive
  • Installing psr/http-message (1.0.1): Extracting archive
  • Installing psr/http-server-handler (1.0.1): Extracting archive
  • Installing psr/http-server-middleware (1.0.1): Extracting archive
  • Installing psr/http-client (1.0.1): Extracting archive
  • Installing psr/http-factory (1.0.1): Extracting archive
  • Installing laminas/laminas-diactoros (2.19.0): Extracting archive
  • Installing laminas/laminas-zendframework-bridge (1.6.1): Extracting archive
  • Installing laminas/laminas-httphandlerrunner (1.5.0): Extracting archive
  • Installing composer/ca-bundle (1.3.4): Extracting archive
  • Installing cakephp/chronos (2.3.0): Extracting archive
  • Installing aura/intl (3.0.1): Extracting archive
  • Installing cakephp/cakephp (4.0.10): Extracting archive
    5 package suggestions were added by new dependencies, use composer suggest to see details.
    Generating autoload files
    Class Cake\Composer\Installer\PluginInstaller is not autoloadable, can not call post-autoload-dump script
    4 packages you are using are looking for funding.
    Use the composer fund command to find out more!
    No security vulnerability advisories found

Installing cakephp/migrations:^3.0@beta...
./composer.json has been updated
Running composer update cakephp/migrations
Loading composer repositories with package information
Updating dependencies
Lock file operations: 13 installs, 0 updates, 0 removals

  • Locking cakephp/migrations (3.1.0)
  • Locking psr/container (2.0.2)
  • Locking robmorgan/phinx (0.12.13)
  • Locking symfony/config (v6.1.3)
  • Locking symfony/console (v6.1.6)
  • Locking symfony/deprecation-contracts (v3.1.1)
  • Locking symfony/filesystem (v6.1.5)
  • Locking symfony/polyfill-ctype (v1.26.0)
  • Locking symfony/polyfill-intl-grapheme (v1.26.0)
  • Locking symfony/polyfill-intl-normalizer (v1.26.0)
  • Locking symfony/polyfill-mbstring (v1.26.0)
  • Locking symfony/service-contracts (v3.1.1)
  • Locking symfony/string (v6.1.6)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 13 installs, 0 updates, 0 removals
  • Installing symfony/polyfill-mbstring (v1.26.0): Extracting archive
  • Installing symfony/polyfill-intl-normalizer (v1.26.0): Extracting archive
  • Installing symfony/polyfill-intl-grapheme (v1.26.0): Extracting archive
  • Installing symfony/polyfill-ctype (v1.26.0): Extracting archive
  • Installing symfony/string (v6.1.6): Extracting archive
  • Installing psr/container (2.0.2): Extracting archive
  • Installing symfony/service-contracts (v3.1.1): Extracting archive
  • Installing symfony/deprecation-contracts (v3.1.1): Extracting archive
  • Installing symfony/console (v6.1.6): Extracting archive
  • Installing symfony/filesystem (v6.1.5): Extracting archive
  • Installing symfony/config (v6.1.3): Extracting archive
  • Installing robmorgan/phinx (0.12.13): Extracting archive
  • Installing cakephp/migrations (3.1.0): Extracting archive
    8 package suggestions were added by new dependencies, use composer suggest to see details.
    Generating autoload files
    Class Cake\Composer\Installer\PluginInstaller is not autoloadable, can not call post-autoload-dump script
    14 packages you are using are looking for funding.
    Use the composer fund command to find out more!
    No security vulnerability advisories found

If someone could advise me, I would be very happy, because I would like to start, try to create a project using this framework :)

Allow users to skip requirements check(s)

There are use cases, where cakephp/app requirements are not met on the target system, but user still wants the Oven to create CakePHP app locally. For example, missing php-intl extension (there is workaround - CakeDC/Intl plugin). Some checkbox(es) (checked by default) causing --ignore-platform-reqs parameter of composer call(s) should do the trick.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.