ozee31 / cakephp-starter
CakePHP skeleton app
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Type:project
Requires
- php: >=5.5.9
- cakephp/cakephp: 3.3.*
- cakephp/migrations: ~1.0
- cakephp/plugin-installer: *
- daoandco/cakephp-cachecleaner: ^1.0
- mobiledetect/mobiledetectlib: 2.*
- wyrihaximus/twig-view: ^3.3
Requires (Dev)
- cakephp/bake: ~1.1
- cakephp/debug_kit: ~3.2
- psy/psysh: @stable
Suggests
- cakephp/cakephp-codesniffer: Allows to check the code against the coding standards used in CakePHP.
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
This package is not auto-updated.
Last update: 2024-10-26 19:37:51 UTC
README
A skeleton for creating applications with CakePHP 3.x.
The framework source code can be found here: cakephp/cakephp.
Installation
CakePHP
- Download Composer or update
composer self-update
. - Run
php composer.phar create-project --prefer-dist ozee31/cakephp-starter [app_name]
.
If Composer is installed globally, run
composer create-project --prefer-dist ozee31/cakephp-starter [app_name]
You should now be able to visit the path to where you installed the app and see the default home page.
Front
Run npm install
Configuration
Read and edit config/app.php
and setup the 'Datasources' and any other
configuration relevant for your application.
Front
Architecture
- /front/build/* : webpack configuration
- /front/src/* : all front sources (es2015 + scss...)
Debug mode
Run webpack web server with the command npm run dev
Deployment
Run npm run build
and change debug mode in app.php
Subdirectory configuration
For exemple if url access is /subdir/
instead of /
change in config/app.php :
'Webpack' => [
'assets' => [
'dev' => 'http://localhost:3003/subdir/app.js',
'config' => 'assets.json',
],
],
and in front/build/config.js
assets_url: '/subdir/'