aplus/app
Composer 安装命令:
composer create-project aplus/app
包简介
Aplus Framework App Project
README 文档
README
Aplus Framework App Project
Getting Started
Make sure you have Composer installed.
Follow the installation instructions in the User Guide.
To install the latest version:
composer create-project aplus/app
Or, to install the latest LTS version:
composer create-project aplus/app:^24
Enter the project directory.
Optionally, you can start a new project on GitHub from this template.
Licensing
Add a LICENSE file.
If you think about open-source your project, choose a license.
If your project is proprietary, you can add your custom license or not.
Edit the .php-cs-fixer.dist.php file.
Set the project name and copyright information.
To update the comment header in all PHP files, run:
vendor/bin/php-cs-fixer fix -vvv
Code Quality
Aplus Framework uses Code Quality Tools in all its projects.
By default, App Project also uses the following tools as dev-dependencies:
Static Analysis
You can find bugs in your code without writing tests by running:
vendor/bin/phpstan analyse
See the phpstan.neon.dist file for more details.
Mess Detector
You can look for several potential problems in the source code by running:
vendor/bin/phpmd app xml phpmd.xml
Customize your rules in the phpmd.xml file.
Coding Standard
We extend PHP-CS-Fixer to create the Coding Standard Library.
It is PSR-12 compatible.
You can see what to fix in the source code by running:
vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
Testing
We extend PHPUnit to create the Testing Library.
You can unit test your code by running:
vendor/bin/phpunit
See the phpunit.xml.dist file for more details.
Documenting
Good software usually has good documentation.
You can build beautiful HTML pages about your project's documentation.
You must have phpDocumentor installed on your computer or run phpdoc
inside a container.
Development Environment
The App Project is delivered with a dev-dependency to easily configure the built-in PHP development server.
Just run
vendor/bin/php-server
and your project will be available at http://localhost:8080.
See the php-server.ini file for more details.
Containers
Aplus has Docker images for testing and building software.
You can run it in CI or local environments.
With Docker installed on your computer, you can run:
docker-compose run --service-ports lempa
This will log you as the developer user into a Docker container where you can run all your tests.
By default, the web app will be available at http://localhost, on ports 80 and 443.
See the docker-compose.yml file for more details.
Continuous Integration
App Project is cross-platform and can be used in public and private projects.
You can use it on GitLab, on GitHub, on your computer, anywhere you want.
The App Project is already pre-configured to run in a GitLab CI environment.
See the .gitlab-ci.yml file for more details.
Just upload your project to GitLab and it will run pipelines.
On GitHub, it will run workflows to test your code every Push or Pull Request.
Check the .github folder to see more.
And now?
Go build an API or a website, an awesome app! ⚡
See you.
If you have a little time...
Visit the Aplus Framework website: aplus-framework.com
Follow Aplus on:
Stay tuned for our updates.
Share your experiences about meet us!
Remember:
Coding is Art.
Coding is Engineering.
Good developer loves to code.
Code with Love!
The Aplus Framework Team
aplus/app 适用场景与选型建议
aplus/app 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.58M 次下载、GitHub Stars 达 601, 最近一次更新时间为 2021 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「routing」 「http」 「mvc」 「config」 「project」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aplus/app 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aplus/app 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aplus/app 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
repository php library
Store your language lines in the database, yaml or other sources
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Write down your routing mapping at one place
A PSR-7 compatible library for making CRUD API endpoints
统计信息
- 总下载量: 1.58M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 601
- 点击次数: 13
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-22
