A perfect tool for creating Restful web service in PHP
Project description
Rest CLI (technical preview)
If you love ?
- Beautiful restful web service with standard architecture
- The fastest way to get things done with less human manipulation
- Easy way to initialize hundred units in minutes
- Well tested structure with maintainable like Java with the flexible from PHP
Then this powerful tool is the right choice for you.
Prerequisite
- Docker
- Python 2.7 with pip
- PHP 7.2 with composer
Installation
$ pip install rest-cli
Road map
- Create web service base on a lightweight skeleton
- Database schema migration
- Reverse schema to model - repository - service and dependency injectors
- Support built-in query annotations
- Compile api routes and generate controller with integration tests
- Serve and test application
- Generate swagger documentation base on api routes
- Export micro-service interfaces for inter-communication in SOA
- Support RPC exception via response verification
Usages
- Create web service application
- --quite : Quite mode without asking anything about configuration
- --force : Force creating application without complaining about existing project
- --mysql : Start a mysql container with default information
$ rest create <awesome-service>
- Change directory to service and write some migrations at
src/Shared/Migration
$ rest migrate
- Synchronize model - repository - service - controller - test cases
- To create some awesome apis, modify your routes at
config/api
$ rest sync
- View route list
- To see which routes are configured and manage apis
$ rest route
- Serve your application to test in browser
$ rest serve
- Test your application with PHPUnit
$ rest test
- Check current version
$ rest version
- Update new version of rest-cli ?
$ rest upgrade
- Need more help ?
$ rest --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rest-cli-0.0.2.tar.gz
(15.4 kB
view hashes)
Built Distributions
rest_cli-0.0.2-py2.7.egg
(33.1 kB
view hashes)
rest_cli-0.0.2-py2-none-any.whl
(16.9 kB
view hashes)