Download the PHP package fourcoders/latch-bundle without Composer
On this page you can find all versions of the php package fourcoders/latch-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fourcoders/latch-bundle
More information about fourcoders/latch-bundle
Files in fourcoders/latch-bundle
Package latch-bundle
Short Description Easy integration of Latch in your symfony2 project.
License MIT
Informations about the package latch-bundle
LatchBundle
Easy integration of Latch in your symfony2 project. You can visit the official website: http://fourcoders.github.io/LatchBundle/
Prerequisites
Translations
If you wish to use default texts provided in this bundle, you have to make sure you have translator enabled in your config.
For more information about translations, check Symfony documentation.
Installation
- Download LatchBundle using composer
- Enable the Bundle
- Update your User class
- Configure the LatchBundle
- Import LatchBundle routing
- Update your database schema
- Setup your latch operations
Step 1: Download LatchBundle using composer
Add LatchBundle in your composer.json.
First option: You can install the official Latch PHP SDK by ElevenPaths. Composer can not load repositories recursively .You need to add this dependency in your composer.json or You can manage it by satis or toran proxy.
After install libraries, You must put eleven_paths as a your latch_driver in your config.yml:
Second Option: You can install unofficial fourcoders/latch-sdk-php. Its very similar to the official Latch PHP SDK by ElevenPaths , however we use composer for managing the dependencies and Guzzle for the HTTP Request.
After install libraries, You must put fourcorders as a your latch_driver in your config.yml:
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Update your User class
Insert a new field in the User entity, or whatever you are using with your security provider.
If you are using FOSUserBundle this a example:
For a stardard register, check Symfony documentation, after you can override the User.php.
Step 4: Configure the LatchBundle
How to setup latch_driver
Step 5: Import LatchBundle routing files
Step 6: Update your database schema
For ORM run the following command.
Step 7: Setup your latch operations
You can securize any http resource with your Latch operations. Begin the setup process of your operations with your operation name and pattern in the config.yml
Finally your operations must be defined in the access control params:
Now that you have completed the basic installation and configuration of the LatchBundle, you are ready to learn about more advanced features and usages of the bundle.
The following documents are available:
- Use into the FOSUserBundle
- Use into the standard registration of symfony documentation
- Overriding Templates