php-resta/resta-core
Composer 安装命令:
composer require php-resta/resta-core
包简介
resta php api restfull framework
README 文档
README
Resta - A Great Php Api Designer
Note: The repository contains core of the resta. The resta core is a fully open source and will be continuously developed. So that we will work with the help of your pull requests to make the core more stable.
Code of Conduct
Please review Code of Conduct. The resta core we will work together as much as we can to bring it to a better structure. the resta is very nice and very comfortable to write a better api code. We are pleased to present this to the community.
How to work the resta core?
Note: The resta core works in complete harmony by means of the skeleton repository. If you want,you can create your api structure with keep track of the core application box.
Resta core consists of a stable box. This box is defined as Application Box. This class works with the same determination all over the place.The application box is in the role of igniter for running a set of kernel classes. The skeleton repository integrates this magical box perfectly into itself and forms the resta structure.
For example, you can write as follows.
require_once '../vendor/autoload.php'; use Resta\Foundation\Application $app = new Application(true);
As you can see above, the application object will return itself in a super-fast way without error. One issue you should be aware of is that the resta kernel is directly dependent on the composer.json file. Therefore, you must install its dependencies via composer before using the application object.
Now let's make a small example to show what can be done with this magic box. In this example,lets install an array as a configuration,then let's read these values.
require_once '../vendor/autoload.php'; use Resta\Foundation\Application $app = new Application(true); //set array values via loadConfig method $app->loadConfig(function() { return ['test' => ['value1' => 'foo','value2'=>['nested1' => 'nestedValue1']]]; }); //let's read these values via config helper method config('test.value1); config('test.value2.nested1');
How to learn resta?
The resta has a perfectly written Documentation.If you have a php framework habit depending on your quick learning ability. Do not worry. You will be able to learn very easily the resta and use it with peace of mind.
Resta includes the following components.
and the resta provides support from many powerful components.
Security Vulnerabilities
If you discover a security vulnerability within Resta, please send an e-mail to Ali Gürbüz via galiant781@gmail.com. All security vulnerabilities will be promptly addressed.
License
The resta api designer is open-sourced software licensed under the MIT license.
php-resta/resta-core 适用场景与选型建议
php-resta/resta-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.69k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 04 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「restfull」 「restapi」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 php-resta/resta-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 php-resta/resta-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 php-resta/resta-core 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Вспомогательные функции и классы для проекта RestAPI
Lightweight PHP Library for manipulation of Collection+Json hypermedia-type objects. Can be used as server or client
restapi sdk
Pluf core pakcage
A Flight PHP framework skeleton app to get your new projects up and running ASAP
Pluf monitor module
统计信息
- 总下载量: 2.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-20