PHPackages                             saxulum/saxulum-bundle-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. saxulum/saxulum-bundle-provider

AbandonedArchivedLibrary

saxulum/saxulum-bundle-provider
===============================

Saxulum Bundle Provider

1.1.1(11y ago)11.1k2[1 issues](https://github.com/saxulum-legacy/saxulum-bundle-provider/issues)MITPHPPHP &gt;=5.3.3

Since Feb 9Pushed 8y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-bundle-provider)[ Packagist](https://packagist.org/packages/saxulum/saxulum-bundle-provider)[ RSS](/packages/saxulum-saxulum-bundle-provider/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (5)Used By (0)

saxulum-bundle-provider
=======================

[](#saxulum-bundle-provider)

**works with plain silex-php**

[![Build Status](https://camo.githubusercontent.com/d9f96324c0a7a46becce971635d9db47080159d1205c325b157fb5f0bddc141d/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d62756e646c652d70726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-bundle-provider)[![Total Downloads](https://camo.githubusercontent.com/d61354835918f26ca12b59086d0d49851cd0ebfbeea557a03cf7bef3027b2133/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d62756e646c652d70726f76696465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-bundle-provider)[![Latest Stable Version](https://camo.githubusercontent.com/bcb188edd27d6a15c2f506581e37620938a0eb533e2ce7343f753fc7f65df721/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d62756e646c652d70726f76696465722f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-bundle-provider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/44e7e0336d7595feb3be01b156913a7acda3fa648a10ef975dc8bda6a60de5f9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736178756c756d2f736178756c756d2d62756e646c652d70726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f733d36653362363066626534356536353266653031623731643737663735363465303762346663356564)](https://scrutinizer-ci.com/g/saxulum/saxulum-bundle-provider/)

Features
--------

[](#features)

- Register commands, controllers, doctrine orm entities, translations, twig templates

Requirements
------------

[](#requirements)

- php &gt;=5.3
- Silex ~1.1

Suggestions
-----------

[](#suggestions)

- [Doctrine ORM Service Provider](https://github.com/dflydev/dflydev-doctrine-orm-service-provider) &gt;= 1.0.4
- [Saxulum Console](https://github.com/saxulum/saxulum-console) &gt;= 1.2.0
- [Saxulum Route Controller Provider](https://github.com/saxulum/saxulum-route-controller-provider) &gt;= 1.0.3
- [Saxulum Translation Provider](https://github.com/saxulum/saxulum-translation-provider) &gt;= 1.0.0

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [saxulum/saxulum-bundle-provider](https://github.com/saxulum/saxulum-bundle-provider).

### Console

[](#console)

Use the installation guide of the [Saxulum Console](https://github.com/saxulum/saxulum-console).

### Controller

[](#controller)

Use the installation guide of the [Saxulum Route Controller Provider](https://github.com/saxulum/saxulum-route-controller-provider).

### Doctrine ORM

[](#doctrine-orm)

#### AnnotationRegistry

[](#annotationregistry)

Add this line after you added the `autoload.php` from composer

```
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

```

Use the installation guide of the [Doctrine DBAL Service Provider](http://silex.sensiolabs.org/doc/providers/doctrine.html). Use the installation guide of the [Doctrine ORM Service Provider](https://github.com/dflydev/dflydev-doctrine-orm-service-provider) without the mapping settings.

#### Example

[](#example)

```
$app->register(new DoctrineOrmServiceProvider(), array(
    'orm.proxies_dir' => __DIR__ . '/../../../../../doctrine/proxies'
));

```

### Translation

[](#translation)

Use the installation guide of the [Saxulum Translation Provider](https://github.com/saxulum/saxulum-translation-provider).

### Twig

[](#twig)

Use the installation guide of the [Twig Provider](http://silex.sensiolabs.org/doc/providers/twig.html).

### Bundle

[](#bundle)

Create a provider which extends `Saxulum\BundleProvider\Provider\AbstractBundleProvider`and register it.

#### Example Provider

[](#example-provider)

```
