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 details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rest_cli-0.0.2-py2.7.egg
(33.1 kB
view details)
rest_cli-0.0.2-py2-none-any.whl
(16.9 kB
view details)
File details
Details for the file rest-cli-0.0.2.tar.gz.
File metadata
- Download URL: rest-cli-0.0.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa2d4808ce155b81c55a42cf3c2ca6425e1f1173d702f605de74aa0cdd28ad35
|
|
| MD5 |
656d3f2554d5c0c3309c6a47aaf3a596
|
|
| BLAKE2b-256 |
f4484f878e93765ebf600d042ce3668f22fa1af3085d678ab061868004c1e1ba
|
File details
Details for the file rest_cli-0.0.2-py2.7.egg.
File metadata
- Download URL: rest_cli-0.0.2-py2.7.egg
- Upload date:
- Size: 33.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8945674e2661e30414908fca02ca7fad8e53e997895aab17fa00a4e8f54b62f
|
|
| MD5 |
f63d9e0b75fc95eafc68e7903c7cdd9f
|
|
| BLAKE2b-256 |
517dad9b0d4bd75528e36243870d2a9f862befb5883c29bb0c0f7682b70d3f7e
|
File details
Details for the file rest_cli-0.0.2-py2-none-any.whl.
File metadata
- Download URL: rest_cli-0.0.2-py2-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
353d8ee1d036d302a77377873120bc307e6bb02c754a84fbb7723efc0aa23430
|
|
| MD5 |
5145883472db7e7666e817566b1c767b
|
|
| BLAKE2b-256 |
8290fe0e2e696cd7acb432e1065c20f11e5417d7c7b73fd366bfa363a88f9c11
|