magdev/php-assimp-silex-provider

This package is abandoned and no longer maintained. No replacement package was suggested.

Silex Service-Provider for magdev/php-assimp

dev-master 2014-08-02 06:03 UTC

This package is auto-updated.

Last update: 2020-02-05 08:34:32 UTC


README

##Installation

Add it using composer :

{
    "require": {
        "magdev/php-assimp-silex-provider": "dev-master"
    }
}

and until this package is registered at Packagist add the repository

{
    "repositories" : [{
            "type" : "vcs",
            "url" : "git@github.com:magdev/php-assimp-silex-provider.git"
        }
    ]
}

##Usage

###Registering the provider

use Silex\Application;
use Assimp\Silex\Provider\AssimpServiceProvider;

$app = new Application();
$app->register(new AssimpServiceProvider(), array(
    'assimp.bin_path' => '/path/to/assimp'
));

###Using the service

use Assimp\Command\Verbs\ListExtensionsVerb;

$verb = new ListExtensionsVerb();
$app['assimp']->execute($verb);
print_r($verb);

##License

This is released under the MIT license