go1 / app
This package is abandoned and no longer maintained.
No replacement package was suggested.
v2.1.10
2017-09-05 06:12 UTC
Requires
- doctrine/dbal: ^2.5
- go1/jwt-middleware: ^0.2
- silex/silex: ^2.0.0
- symfony/stopwatch: ^3.2
Requires (Dev)
- guzzlehttp/guzzle: ^6.0
- monolog/monolog: ^1.19.0
- dev-main
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0
- v0.5
- v0.4
- v0.3
- v0.2
- v0.1
- dev-DEVX-190
- dev-update-dd-1
- dev-update-dd
- dev-simplify-redis-env-name
- dev-error-200
This package is auto-updated.
Last update: 2024-07-14 01:53:01 UTC
README
Base microservice application.
Cache service
The cache
service will become Doctrine\Common\Cache\ArrayCache
on testing.
# Memcache backend
$options = ['backend' => 'memcache', 'host' => '127.0.0.1', 'port' => '11211'];
# Memcached
$options = ['backend' => 'memcached', 'host' => '127.0.0.1', 'port' => '11211'];
# File system backend
$options = ['backend' => 'filesystem', 'directory' => '/path/to/cache/'];
$app = new go1\App(['cacheOptions' => $options]);
// Acces `cache` service, instance of `Doctrine\Common\Cache\CacheProvider`
$cache = $app['cache'];
Logging service
$options = ['name' => 'go1'];
$app = new go1\App(['logOptions' => $options]);
// Access `logger` service, instance of `Psr\Log\LoggerInterface`
$logger = $app['logger'];
HTTP client service
$options = ['allow_redirects' => false];
$app = new go1\App(['clientOptions' => $options]);
// Access `client` service, instance of `GuzzleHttp\Client`
$client = $app['client'];