Download the PHP package ovimughal/lamirator without Composer
On this page you can find all versions of the php package ovimughal/lamirator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ovimughal/lamirator
More information about ovimughal/lamirator
Files in ovimughal/lamirator
Package lamirator
Short Description Tool to configure your laminas app for Lamirest package & easily create modules
License MIT
Homepage https://github.com/ovimughal/lamirator
Informations about the package lamirator
Lamirator
Create Laminas, Lamirest module (oRest, oapi) with one console command
Install
- Open terminal
-
Go to you root directory
- Run below composer command
Start Using
From app root directory enter:
For simplicity (Optional)
- create a php file in you application root (e.g lamirator.php)
- Open it in your favourite text-editor
-
Paste following line
And save
- Now from your terminal simply enter:
And your Laminas Module is ready to use
Options
-m <Module-Name>
(Default isSkeletonModule
)-t <Type>
(Type is eitherzf3
oroapi
oroRest
, default iszf3
, any other type other thanoapi
oroRest
will considerzf3
)Note
zf3
is default Laminas Module, since no mechanism is provided to auto generate this module as was available in ZF2 Eclipse PDT or Zend Studio, I kept option here.
oapi
is Laminas'sAbrstractRestfulController
based module where we can handle REST easily.
oRest
is awesome Laminas'sAbstractActionController
based module. An easey to use and your lovedAction
based approach.
By havingLamirest
module installed you will getJWT-Token
,AccessControlList(ACL)
,Doctrine
,ExceptionHandling
,ApiValidation
,Multi-tenant SAAS
,Encryption
,Clean Architecture
& much more out of the box.
- Test in your browser
http://hostname:port/yourapp/yourmodule
no configuration needed. - Enjoy :)
For Lamirest
Module users
- For installation Lamirest
- Once you are up with installation, from your root directory type in following command in terminal
./vendor/bin/lamirator lamirest:serve
This will serve Lamirest module & do all the necessary configurations automatically
Also some config files will be generated for you. -
For
doctrine
to work properly we need to tell it the location of Entities
Paste following in anymodule\<module-name>\config\module.config.php
return array - You are Done :)