exs / feeds-awe-bundle
This bundle reads AWE's api to get live performers' information.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ~5.6|~7.0
- ext-memcached: *
- cache/memcached-adapter: ~1.0
- guzzlehttp/guzzle: ~6.2
- symfony/console: ~2.8|~3.3
- symfony/framework-bundle: ~2.8|~3.3
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is auto-updated.
Last update: 2024-12-29 05:16:15 UTC
README
Installation
This bundle uses PHP's native Memcached objects.
Make sure the memcached module is enabled in your PHP's installation.
Require the bundle using composer
$ composer require exs/feeds-awe-bundle
Enable it in your application's AppKernel
<?php // app/AppKernel.php class AppKernel extends Kernel { // ... public function registerBundles() { $bundles = array( // ... new EXS\FeedsAWEBundle\EXSFeedsAWEBundle(), ); } }
Configuration
Some configuration is available to manage the cache.
# Default values exs_feeds_awe: cache_ttl: 300 memcached_host: 'localhost' memcached_port: 11211
Usage
// Returns performer Ids' array. $performerIds = $container ->get('exs_feeds_awe.feeds_reader') ->getLivePerformers() ;
A command is also available if you want to force refresh the memcached record.
$ app/console feeds:awe:refresh-live-performers --env=prod --no-debug
$ app/console feeds:cambuilder:refresh-live-performers --limit=500 --ttl=3600 --env=prod --no-debug