cakephp / app
CakePHP 框架骨架应用
5.1.0
2024-09-17 16:13 UTC
Requires
- php: >=8.1
- cakephp/cakephp: ^5.1.0
- cakephp/migrations: ^4.0.0
- cakephp/plugin-installer: ^2.0
- mobiledetect/mobiledetectlib: ^4.8.03
Requires (Dev)
- cakephp/bake: ^3.0.0
- cakephp/cakephp-codesniffer: ^5.0
- cakephp/debug_kit: ^5.0.0
- josegonzalez/dotenv: ^4.0
- phpunit/phpunit: ^10.5.5 || ^11.1.3
Suggests
- cakephp/repl: Console tools for a REPL interface for CakePHP applications.
- 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/Psalm compatibility.
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
- phpstan/phpstan: PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code.
- 5.x-dev
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-RC1
- 5.0.0-beta2
- 5.0.0-beta1
- 4.x-dev
- 4.5.0
- 4.4.2
- 4.4.1
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-RC2
- 4.0.0-RC1
- 4.0.0-alpha1
- 3.x-dev
- 3.10.1
- 3.10.0
- 3.9.1
- 3.9.0
- 3.8.0
- 3.7.1
- 3.7.0
- 3.6.5
- 3.6.4
- 3.6.3
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.1
- 3.5.0
- 3.5.0-RC1
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.3.0-beta2
- 3.3.0-beta
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.1.0-beta
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-RC2
- 3.0.0-RC1
- 3.0.0-beta3
- 3.0.0-beta2
- 3.0.0-beta1
- 3.0.0-alpha2
- 3.0.0-alpha1
- dev-ADmad-patch-1
- dev-phpunit-deprecation
- dev-5.next
- dev-4.next
- dev-installer-mysql
- dev-cakefest-demo
- dev-feat-repl
This package is auto-updated.
Last update: 2024-09-18 19:37:27 UTC
README
用于创建 CakePHP 5.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
然后访问 http://localhost:8765
来查看欢迎页面。
更新
由于此骨架是您应用的起点,并且各种文件根据您的需求进行了修改,因此无法提供自动升级,所以您需要手动进行更新。
配置
阅读并编辑环境特定的 config/app_local.php
并设置 'Datasources'
以及与您的应用相关的其他配置。其他与环境无关的设置可以在 config/app.php
中更改。
布局
应用骨架默认使用 Milligram(v1.3)极简 CSS 框架。然而,您也可以替换为任何其他库或自定义样式。