2017 © Pedro Peláez
 

symfony-bundle aldocbundle

Weide Aldoc Bundle

image

weide/aldocbundle

Weide Aldoc Bundle

  • Thursday, December 4, 2014
  • by Intrepidity
  • Repository
  • 0 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Step 1) Get the bundle

Add the following to your composer.json, (*1)

"require": {
    "weide/aldocbundle": "dev-master"
}

Step 2) Register the bundle

To start using the bundle, register the following bundles in your Kernel:, (*2)

``` php <?php // app/AppKernel.php, (*3)

public function registerBundles() { $bundles = array( // ... new Weide\AldocBundle\WeideAldocBundle(), // ... ); }, (*4)


### Step 3) Configuration You must configure the following setting in your config.yml: weide_aldoc: customername: weide This is needed to generate a URL for the Aldoc webservice. ### Step 4) Profit Use the bundle as follows: ```php public function myAction() { $aldoc = $this->get('weide_aldoc.aldoc'); $aldoc->getTypes('08-TT-NP'); // Return types for a license plate $aldoc->getPartsFromType($type); // Return part numbers for a Weide\AldocBundle\Model\Type-object // Or all at once: $aldoc->getPartsFromLicensePlate('08-TT-NP'); }

Please note that WeideAldocBundle maintains a cache under app/cache/prod/aldoc. Clearing your cache means that all requested license plates and parts need to be re-fetched., (*5)

The Versions

04/12 2014

dev-master

9999999-dev https://bitbucket.org/weide/aldocbundle

Weide Aldoc Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bart Guliker

weide aldoc