https://github.com/secondtruth/wumbo
A simple framework for web applications written in PHP.
https://github.com/secondtruth/wumbo
Last synced: 8 months ago
JSON representation
A simple framework for web applications written in PHP.
- Host: GitHub
- URL: https://github.com/secondtruth/wumbo
- Owner: secondtruth
- License: mit
- Created: 2022-09-06T21:01:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T00:56:34.000Z (about 3 years ago)
- Last Synced: 2025-03-19T20:48:01.373Z (11 months ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Wumbo Framework
***Go from Mini to Wumbo!***
Wumbo is a framework for building simple web applications in PHP.
## Installation
### Install via Composer
[Install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) if you don't already have it present on your system.
To install the library, run the following command and you will get the latest version:
$ composer require secondtruth/wumbo:dev-main
## Usage
Create a new file called `public/index.php` and add some code like this:
```php
set(TemplatingEngineInterface::class, TwigEngine::create(APP_ROOT . '/resources/views', [
'cache' => APP_ROOT . '/var/cache/twig',
]));
// Create and set up a routes loader and give it to the application.
$routesLoader = new MultisiteRoutesLoader(CONFIG_DIR);
$routesLoader->registerSite('example.com'); // Give the domain of your website
// Create a new Application instance and set routes loader and container.
$app = new Application($routesLoader, $container);
$app->setCachePath(APP_ROOT . '/var/cache');
$app->run();
```
## Author, Credits and License
This project was created by [Christian Neff](https://www.secondtruth.de) ([@secondtruth](https://github.com/secondtruth))
and is licensed under the MIT license.
Thanks to [all other Contributors](https://github.com/secondtruth/wumbo/graphs/contributors)!