https://github.com/olomadev/olobase
Olobase Php - Mezzio Framework components.
https://github.com/olomadev/olobase
admin api framework mezzio php rest spa vue vuetify
Last synced: 3 months ago
JSON representation
Olobase Php - Mezzio Framework components.
- Host: GitHub
- URL: https://github.com/olomadev/olobase
- Owner: olomadev
- Created: 2025-07-21T11:48:57.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-07-21T17:37:39.000Z (3 months ago)
- Last Synced: 2025-07-21T18:14:54.307Z (3 months ago)
- Language: PHP
- Size: 74.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Olobase Php REST API - Mezzio Framework components.
Oloma Mezzio Framework components.
## Installation
Put \Olobase\ConfigProvider::class in to your /config/autoload/mezzio.global.php file.
```
declare(strict_types=1);use Laminas\ConfigAggregator\ArrayProvider;
use Laminas\ConfigAggregator\ConfigAggregator;
use Laminas\ConfigAggregator\PhpFileProvider;
use Mezzio\Helper\ConfigProvider;// To enable or disable caching, set the `ConfigAggregator::ENABLE_CACHE` boolean in
// `config/autoload/local.php`.
$cacheConfig = [
'config_cache_path' => 'data/cache/config-cache.php',
];$aggregator = new ConfigAggregator([
// Oloma components
\Olobase\ConfigProvider::class,// Load application config in a pre-defined order in such a way that local settings
// overwrite global settings. (Loaded as first to last):
// - `global.php`
// - `*.global.php`
// - `local.php`
// - `*.local.php`
// new PhpFileProvider(realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php'),
new PhpFileProvider(realpath(__DIR__) . sprintf('/autoload/{,*.}{global,%s}.php', getenv('APP_ENV') ?: 'local')),// Load development config if it exists
new PhpFileProvider(realpath(__DIR__) . '/development.config.php'),
], $cacheConfig['config_cache_path']);return $aggregator->getMergedConfig();
```