smichaelsen / phpframework
轻量但强大的PHP框架
1.4.1
2015-02-24 08:43 UTC
Requires
- php: >=5.4.0
- nette/caching: 2.2.*
- swiftmailer/swiftmailer: 5.3.*
- twig/twig: 1.16.*
Requires (Dev)
- phpunit/dbunit: 1.3.*
- dev-develop
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/60-composer-plugin
- dev-feature/51-plugin-sql
- dev-feature/59-routing-loop
- dev-feature/php_7
- dev-feature/57-singleton
- dev-master
- dev-hotfix/58-http-auth-no-users
- dev-feature/48-db-tests
- dev-release/1.4.0
- dev-feature/37-responder-classes
- dev-feature/30-project-root
- dev-branch_1.0
This package is not auto-updated.
Last update: 2024-09-14 12:11:01 UTC
README
此框架是基于Luzifer的PHPFramework的分支。
由于分支,系统的大部分内容都被重写或进行了重大修改。以下是与原始PHPFramework差异的(可能不完整的)概述
- 支持PSR-4自动加载的PHP命名空间(已移除旧自动加载器)
- 作为composer包构建。
- 新的静态类,可随时随地访问配置和数据库连接
- 缓存建立在Nette Caching之上
- 支持领域驱动设计,包括领域模型对象、仓库、集合以及ORM机制。
分支与原始框架和自身先前版本不兼容。在下一个主要版本(2.0)之后,我们将转向更具向后兼容性的开发。
需求
成功测试于
- Debian / Ubuntu Linux
- PHP 5.4.0至5.6.2
- Apache或nginx
- MySQL 5.6
设置
PHPFramework旨在与composer一起使用。
您的项目composer.json
文件可能如下所示
{
"name": "vendor/myproject",
"require": {
"app-zap/phpframework": "dev-develop"
},
"autoload": {
"psr-4": {
"Vendor\\MyProject\\": "app/Classes/"
}
}
}
- 使用
$ composer update
设置项目 - 为您的应用程序创建一个
app
子目录 - 将PHPFramework文件夹中的
index.php.example
(应为vendor/app-zap/phpframework
)复制到您的根目录作为index.php
。
在您的app
目录内使用以下结构
以下是一个起始的.gitignore
文件
vendor/
settings_local.ini