cayetanosoriano / karmacracy-bundle
wrapper for karmacracy lib
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- cayetanosoriano/kcy: dev-master
- symfony/symfony: > 2.0.0
This package is not auto-updated.
Last update: 2024-04-27 10:28:28 UTC
README
This Bundle, gives a wrapper to karmacracy-php API lib
Installation
Symfony 2.0.x: vendors
[karmacracyBundle]
git=http://github.com/CayetanoSoriano/karmacracyBundle.git
target=/bundles/RaulFraile/Bundle/LadybugBundle
[karmacracy-php]
git=https://github.com/CayetanoSoriano/karmacracy-php.git
target=lib/
Symfony 2.1.x: Composer
Composer is a project dependency manager for PHP. You have to list
your dependencies in a composer.json
file:
{ "require": { "cayetanosoriano/karmacracy-bundle": "dev-master" } }
To actually install in your project, download the composer binary and run it:
wget http://getcomposer.org/composer.phar
# or
curl -O http://getcomposer.org/composer.phar
php composer.phar install
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new cayetanosoriano\KarmacracyBundle\cayetanosorianoKarmacracyBundle(), ); }
Configuration
###Add the following to your config.yml
cayetanosoriano_karmacracy:
keypass: "your_key_pass"
appkey: "your_app_key"
Then use the service
$kcy = $this->get('kcy');