igorbrp / todo
CakePHP 框架应用骨架
dev-master
2021-01-11 15:23 UTC
Requires
- php: >=5.6
- box/spout: ^3.1
- burzum/cakephp-imagine-plugin: ^3.0
- cakedc/users: ^8.4
- cakephp/cakephp: 3.8.*
- cakephp/localized: ^3.5
- cakephp/migrations: ^2.0.0
- cakephp/plugin-installer: ^1.0
- dereuromark/cakephp-ide-helper: ^0.13.16
- friendsofcake/cakepdf: ^3.5
- friendsofcake/search: ^5.3
- goodby/csv: ^1.3
- maiconpinto/cakephp-adminlte-theme: ^1.1
- mobiledetect/mobiledetectlib: 2.*
Requires (Dev)
- cakephp/bake: ^1.9.0
- cakephp/cakephp-codesniffer: ^3.0
- cakephp/debug_kit: ^3.17.0
- josegonzalez/dotenv: 3.*
- phpunit/phpunit: ^5|^6
- psy/psysh: @stable
Suggests
- dereuromark/cakephp-ide-helper: After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility.
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
This package is auto-updated.
Last update: 2024-09-11 23:20:54 UTC
README
为使用 CakePHP 3.x 创建应用的骨架。
框架源代码可在此处找到: cakephp/cakephp。
安装
- 下载 Composer 或更新
composer self-update
。 - 运行
php composer.phar create-project --prefer-dist cakephp/app [app_name]
。
如果Composer已全局安装,运行
composer create-project --prefer-dist cakephp/app
如果您想使用自定义应用目录名(例如 /myapp/
)
composer create-project --prefer-dist cakephp/app myapp
现在,您可以使用机器的Web服务器查看默认主页,或者使用以下命令启动内置Web服务器
bin/cake server -p 8765
然后访问 https://:8765
来查看欢迎页。
更新
由于此骨架是您应用程序的起点,并且各种文件会根据您的需求进行修改,因此无法提供自动升级,您需要手动进行任何更新。
配置
阅读并编辑 config/app.php
并设置 'Datasources'
以及任何与您的应用程序相关的其他配置。
布局
默认情况下,应用骨架使用 Foundation (v5) CSS 框架的一个子集。然而,您可以替换为任何其他库或自定义样式。