Download the PHP package saxulum/saxulum-bundle-provider without Composer
On this page you can find all versions of the php package saxulum/saxulum-bundle-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package saxulum-bundle-provider
saxulum-bundle-provider
works with plain silex-php
Features
- Register commands, controllers, doctrine orm entities, translations, twig templates
Requirements
- php >=5.3
- Silex ~1.1
Suggestions
- Doctrine ORM Service Provider >= 1.0.4
- Saxulum Console >= 1.2.0
- Saxulum Route Controller Provider >= 1.0.3
- Saxulum Translation Provider >= 1.0.0
Installation
Through Composer as saxulum/saxulum-bundle-provider.
Console
Use the installation guide of the Saxulum Console.
Controller
Use the installation guide of the Saxulum Route Controller Provider.
Doctrine ORM
AnnotationRegistry
Add this line after you added the autoload.php
from composer
Use the installation guide of the Doctrine DBAL Service Provider. Use the installation guide of the Doctrine ORM Service Provider without the mapping settings.
Example
Translation
Use the installation guide of the Saxulum Translation Provider.
Twig
Use the installation guide of the Twig Provider.
Bundle
Create a provider which extends Saxulum\BundleProvider\Provider\AbstractBundleProvider
and register it.
Example Provider
Usage
Console
Add commands to the Command
folder relative to your BundleProvider
extending the Saxulum\Console\Command\AbstractCommand
.
Controller
Add controllers to the Controller
folder relative to your BundleProvider
.
Doctrine ORM
Add entities to the Entity
folder relative to your BundleProvider
.
Translation
Add translations to the Resources/translations
folder relative to your BundleProvider
.
For example a file called messages.en.yml
Twig
Add templates to the Resources/views
folder relative to your BundleProvider
.
For example a file called test.html.twig
. You can render it with