gouguoyin / Phprap
Licence: apache-2.0
PHPRAP,是一个PHP轻量级开源API接口文档管理系统,致力于减少前后端沟通成本,提高团队协作开发效率,打造PHP版的RAP。如果您觉得PHPRAP对您有用的话,别忘了给点个赞哦^_^ !
Stars: ✭ 527
Projects that are alternatives of or similar to Phprap
Yii2 Openapi
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
Stars: ✭ 99 (-81.21%)
Mutual labels: yii2
Ar Position
ActiveRecord behavior, which provides ability for custom records order setup
Stars: ✭ 107 (-79.7%)
Mutual labels: yii2
Interceptors
Low-level HTTP/HTTPS/XHR/fetch request interception library.
Stars: ✭ 100 (-81.02%)
Mutual labels: mock
React Nativeish
React Native / React Native Web Boilerplate
Stars: ✭ 106 (-79.89%)
Mutual labels: mock
Really Need
Node require wrapper with options for cache busting, pre- and post-processing
Stars: ✭ 108 (-79.51%)
Mutual labels: mock
Mongodb Memory Server
Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).
Stars: ✭ 1,376 (+161.1%)
Mutual labels: mock
Prig
Prig is a lightweight framework for test indirections in .NET Framework.
Stars: ✭ 106 (-79.89%)
Mutual labels: mock
Impersonator
Ruby library to record and replay object interactions
Stars: ✭ 100 (-81.02%)
Mutual labels: mock
Mockssh
Mock an SSH server and define all commands it supports (Python, Twisted)
Stars: ✭ 107 (-79.7%)
Mutual labels: mock
Mockery
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Stars: ✭ 10,048 (+1806.64%)
Mutual labels: mock
PHPRAP,是一个PHP轻量级开源API接口文档管理系统,致力于减少前后端沟通成本,提高团队协作开发效率,打造PHP版的RAP。
版本说明
- master:在线版本,可能会有致命错误,请不要下载安装
- develop:开发版本,功能最新,但不稳定,不建议下载安装
- stable:稳定版本,建议下载安装,下载源码
相关
- 官方网站:www.phprap.com
- 演示网站:demo.phprap.com
- 使用文档:www.phprap.com/doc
- 作者博客:www.gouguoyin.cn
特性
- 部署简单,提供在线安装程序,只需填写少量信息即可完成安装部署,开箱即用;
- 操作简单,和阿里RAP高度一致的操作流程,给力的用户体验,让您一分钟上手;
- 基于bootstrap搭建,完美适配PC、平板和移动端;
- 项目申请时时推送,方便项目创建者及时处理申请,申请加入者及时获取审核结果;
- 完整的项目操作日志,整个项目的操作流程一目了然;
- 完善的权限控制系统,可以分别控制项目、模块、接口和成员的操作权限;
- 支持在线对接口进行调试,默认填充已定义好的header和请求参数,再也不用在postman中手动添加参数来调试接口;
- 提供MOCK服务,根据接口文档自动生成模拟数据,支持复杂的生成逻辑,支持请求协议、请求方式和请求参数格式校验;
- MOCK数据类型丰富,支持生成随机的文本、数字、布尔值、日期、邮箱、链接、图片、颜色、中文名、手机号、价格、邮箱、网址等;
- 支持项目接口一键导出,方便离线查看;
- 产品开源免费,并将持续提供免费的社区技术支持;
依赖
- PHP >= 5.4.0
- MySQL >= 5.1.0
- PDO 拓展
- GD 拓展
- CURL 拓展
- OPENSSL 拓展
安装
-
下载程序
[GITHUB]
git clone https://github.com/gouguoyin/phprap.git -b "stable"
[GITEE]
git clone https://gitee.com/gouguoyin/phprap.git -b "stable"
[源码]
下载源码,上传到服务器上后解压
-
绑定域名
将域名绑定到`public`目录上
-
设置目录权限
runtime
目录及子目录给予可读可写权限 -
隐藏入口文件index.php
[IIS]
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
RewriteRule (.*)$ /index\.php\?r=$1 [I]
在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php?r=/{R:1}" /> </rule> </rules> </rewrite>
[Apache]
httpd.conf
配置文件中加载mod_rewrite.so
模块将
AllowOverride None
改为AllowOverride All
把下面的内容保存为
.htaccess
文件放到应用入口文件的同级目录下,默认放在public
目录下<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?r=/$1 [QSA,PT,L] </IfModule>
[Nginx]
如果是部署在根目录下,在
Nginx.conf
中配置转发规则location / { try_files $uri $uri/ /index.php?r=$uri&$args; }
-
打开浏览器,访问域名,会自动跳转到安装界面运行安装程序
使用
-
项目
-
模块
-
接口
-
后台
联系
- 如果您在使用过程中有任何疑问,或有好的意见和想法,请通过以下途径联系我或者新建 Issue 讨论新特性或者变更。
- 官方网站:www.phprap.com
- 演示网站:demo.phprap.com
- 作者博客:www.gouguoyin.cn
- 官方QQ群:421537504
捐献
- 如果觉得还不错,请作者喝杯咖啡吧,开源不易,您的支持是我前进的动力!
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].