dev-master
9999999-devSymfony2 Google API bundle
The Requires
- php >=5.3.0
- symfony/symfony 2.7.*
- kriswallsmith/buzz ~0.7
0.1.1
0.1.1.0Symfony2 Google API bundle
The Requires
- php >=5.3.0
- symfony/symfony 2.7.*
- kriswallsmith/buzz ~0.7
Symfony2 Google API bundle
Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:, (*1)
``` jinja $ composer require alitvinenko/google-api-bundle dev-master, (*2)
This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation. Step 2: Enable the Bundle ------------------------- Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project: ``` php <?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Alitvinenko\GoogleApiBundle\AlitvinenkoGoogleApiBundle(), ); // ... } // ... }
Configure the Alitvinenko Google Api Bundle in your config.yml
:, (*3)
``` yaml, (*4)
alitvinenko_google_api:
key:
Code example ------------ ``` php $this->getContainer()->get('alitvinenko_google_api')->getLanguage()->translate($words);
Symfony2 Google API bundle
Symfony2 Google API bundle