Download the PHP package php-gear/auto-client without Composer
On this page you can find all versions of the php package php-gear/auto-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-gear/auto-client
More information about php-gear/auto-client
Files in php-gear/auto-client
Package auto-client
Short Description A command-line tool to generate Javascript client-side APIs from REST PHP APIs
License MIT
Homepage https://github.com/php-gear/auto-client
Informations about the package auto-client
Auto Client
A command-line tool to generate Javascript client-side APIs from REST PHP APIs
Introduction
This package provides a command-line tool for use either with the Laravel framework (as an Artisan command) or with the Electro framework (as a Workman command).
TO DO: provide an explanation of the rationale behind this library and some usage examples.
Note: currently, this tool generates code for use with AngularJS 1.x, and it expects an Angular service called
remote
of typeRemoteService
.This requirement is temporary and it will be removed on a later version of this tool.
Documentation
Additional documentation will be written, as soon as I find the time for it.
Installation
Runtime requirements
- PHP >= 7.0
- AngularJS 1.x
Optionally, one of
- Laravel >= 4.2
- Electro >= 1.0
Installing on Laravel
On the command-line, type:
Register the Artisan command on artisan.php
:
Installing on Electro
Usage
On Laravel
Configuring
On config/app.php
, define the APIs to be exported to Javascript.
Example:
Running the generator
On Electro
Running the generator
License
This library is open-source software licensed under the MIT license.
See the accompanying LICENSE
file.
Copyright © 2018 Cláudio Silva