| Package Data | |
|---|---|
| Maintainer Username: | mindtwo |
| Maintainer Contact: | info@mindtwo.de (mindtwo GmbH) |
| Package Create Date: | 2019-09-23 |
| Package Last Update: | 2023-07-05 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:21:01 |
| Package Statistics | |
|---|---|
| Total Downloads: | 6,346 |
| Monthly Downloads: | 32 |
| Daily Downloads: | 2 |
| Total Stars: | 0 |
| Total Watchers: | 5 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This package contains a application file to use the Laravel-Lumen service container with some Laravel components inside of WordPress.
Via Composer
$ composer require mindtwo/lumen-wp-app
Create a bootstrap/app.php file like this:
<?php
require_once dirname(__DIR__).'/vendor/autoload.php';
(new LumenWpApp\LoadEnvironmentVariables(
dirname(__DIR__)
))->bootstrap();
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| Here we will load the environment and create the application instance
| that serves as the central piece of this framework. We'll use this
| application as an "IoC" container and router for this framework.
|
*/
$app = new LumenWpApp\Application(
dirname(__DIR__)
);
/*
|--------------------------------------------------------------------------
| Load The Application
|--------------------------------------------------------------------------
*/
$app->configure('app');
$app->configure('cache');
$app->configure('database');
$app->configure('filesystems');
$app->configure('logging');
$app->configure('services');
/*
|--------------------------------------------------------------------------
| Load The Application
|--------------------------------------------------------------------------
*/
return $app;
Inside your wp-config.php file:
/** Load Application */
$app = require_once(realpath(__DIR__ . '/../bootstrap/app.php'));
Inside your functions.php file:
$app->registerConfiguredProviders()->boot();
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email info@mindtwo.de instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.