All Projects → gouguoyin → Phprap

gouguoyin / Phprap

Licence: apache-2.0
PHPRAP,是一个PHP轻量级开源API接口文档管理系统,致力于减少前后端沟通成本,提高团队协作开发效率,打造PHP版的RAP。如果您觉得PHPRAP对您有用的话,别忘了给点个赞哦^_^ !

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
Mimic
A mocking library for Elixir
Stars: ✭ 104 (-80.27%)
Mutual labels:  mock
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
Yii2 Starter Kit
Yii2 Starter Kit
Stars: ✭ 1,372 (+160.34%)
Mutual labels:  yii2
React Nativeish
React Native / React Native Web Boilerplate
Stars: ✭ 106 (-79.89%)
Mutual labels:  mock
Sns
Fake Amazon SNS
Stars: ✭ 94 (-82.16%)
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
Unit Threaded
Advanced unit test framework for D
Stars: ✭ 100 (-81.02%)
Mutual labels:  mock
Yii2 Webpack
Yii2 Webpack2 asset management
Stars: ✭ 106 (-79.89%)
Mutual labels:  yii2
Yii2 Migrik
Yii2 Gii-tools for create migration files
Stars: ✭ 99 (-81.21%)
Mutual labels:  yii2
Mockssh
Mock an SSH server and define all commands it supports (Python, Twisted)
Stars: ✭ 107 (-79.7%)
Mutual labels:  mock
Cuckoo
Boilerplate-free mocking framework for Swift!
Stars: ✭ 1,344 (+155.03%)
Mutual labels:  mock
Yii2 Cookbook
Yii 2.0 Community Cookbook
Stars: ✭ 1,397 (+165.09%)
Mutual labels:  yii2
Rageframe2
一个基于Yii2高级框架的快速开发应用引擎
Stars: ✭ 1,553 (+194.69%)
Mutual labels:  yii2
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
Yii2 Db Rbac
Dynamic control of access rights in YII2
Stars: ✭ 106 (-79.89%)
Mutual labels:  yii2

PHPRAP,是一个PHP轻量级开源API接口文档管理系统,致力于减少前后端沟通成本,提高团队协作开发效率,打造PHP版的RAP。

版本说明

  • master:在线版本,可能会有致命错误,请不要下载安装
  • develop:开发版本,功能最新,但不稳定,不建议下载安装
  • stable:稳定版本,建议下载安装,下载源码

相关

特性

  • 部署简单,提供在线安装程序,只需填写少量信息即可完成安装部署,开箱即用;
  • 操作简单,和阿里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 GoPHP官方交流群

捐献

  • 如果觉得还不错,请作者喝杯咖啡吧,开源不易,您的支持是我前进的动力!

微信 支付宝

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].