Download the PHP package moszkva/angie without Composer
On this page you can find all versions of the php package moszkva/angie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moszkva/angie
More information about moszkva/angie
Files in moszkva/angie
Package angie
Short Description Laravel Angular routing manager. Generates angular routing rules and services from serverside routing rules.
License MIT
Informations about the package angie
Angie
Laravel-Angular routing manager. Generates angular routing rules from serverside routing rules and services.
https://packagist.org/packages/moszkva/angie
Features
- Generates angular routing rules from serverside routing rules
- Generates angular services for basic data transfer.
- Namespace resolving in controller's name.
Installation
Installation via composer
Usage
After installation you must register AngieServiceProvider in your config/app.php:
and you must register routing rules for angie:
and you must place these in your index.html after each other angular scripts:
How works the angie?
-
Generates angular routeprovider statment. Above example:
- Generates angular services for basic data transfer:
Very important constraint for valid service generation:
- Laravel routing rules by controller must be unique. Example:
Valid configuration (AnotherAngieTestController is subclass of AngieTestController):
Invalid configuration:
Namespace resolving:
Laravel route rule:
Route::resource('/test', 'Test\Angie\TestController')
Controller name in generated routprovider statement:
TestAngieTestController
Service name in generated service statement:
TestAngieTestControllerService