symlex/rest-api
Composer 安装命令:
composer create-project symlex/rest-api
包简介
Example REST API application based on Symlex Core
README 文档
README
Before you start, make sure you have PHP 7.2+, Composer and Docker installed on your system (howto for Mac OS X). Instead of using Docker, you can set up your own runtime environment based on the existing Dockerfiles. We recommend using Nginx with PHP-FPM and URL rewrite rules similar to Symfony.
Our main repository shows how to use Symlex with RoadRunner for additional performance.
Step 1: Run composer to create a new project:
composer create-project symlex/rest-api myapp
Composer will ask for config values to generate app/config/parameters.yml for you.
Make sure storage/cache is writable so that cache files can be created by the app.
Step 2: Start nginx and PHP using docker-compose:
cd myapp
docker-compose up
Note: This docker-compose configuration is for testing and development purposes only. You might need to tweak it if you run Docker with a different user for security reasons. On OS X, the current release of Docker is really slow in executing PHP from the host's file system.
Step 3: Open http://localhost:8088/example/123 in a browser (source).
To open a terminal, run docker-compose exec php sh.
YAML files located in app/config configure the app based on parameters and services.
The main config file is app/config/rest.yml.
If you add localhost-debug to your /etc/hosts and access the site with that, it will load in debug
mode (you'll see a stack trace and other debug information on the error pages).
Our complete framework documentation can be found on docs.symlex.org.
About
Symlex is maintained by Michael Mayer and aims to simplify agile Web development by providing a working system that promotes best practices by example. Michael released his first PHP framework in 2001 and has worked with various major framework vendors in the past. Building this would not have been possible without a lot of prior work by other developers. Thank you to those and everyone who contributed!
Choice is the enemy of productivity. Put another way, if your solution does everything, and has no opinions about anything, then it solves nothing. ― Asim Aslam
Feel free to send an e-mail to hello@symlex.org if you have any questions, need commercial support or just want to say hello. We welcome contributions of any kind. If you have a bug or an idea, read our guide before opening an issue.
Donations
Symlex is a non-profit project run entirely by volunteers. You're most welcome to support us via GitHub Sponsors, especially if you need help with using our software. They will match every donation in the first year.
Please leave a star if you like this project, it provides additional motivation to keep going. Thank you very much! <3
symlex/rest-api 适用场景与选型建议
symlex/rest-api 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 262 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 symlex/rest-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symlex/rest-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 262
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-04