PHPackages                             danc0/gimliduck-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. danc0/gimliduck-php

ActiveLibrary[Framework](/categories/framework)

danc0/gimliduck-php
===================

GimliDuck is an adaptable micro PHP framework that tries to stay out of your way.

v1.2.1(4mo ago)65421[7 issues](https://github.com/dvnc0/gimli-php/issues)UnlicensePHPPHP &gt;=8.1CI passing

Since Jan 26Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/dvnc0/gimli-php)[ Packagist](https://packagist.org/packages/danc0/gimliduck-php)[ RSS](/packages/danc0-gimliduck-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (84)Used By (0)

GimliDuck ⚔️🦆
=============

[](#gimliduck-️)

An adaptable micro PHP framework that tries to stay out of your way.

**Certainty of death. Small chance of success. What are we waiting for?**

Installation
------------

[](#installation)

`composer require danc0/gimliduck-php`

Create a skeleton project with: `composer create-project danc0/gimli-skeleton`

Add the [devtools](https://github.com/dvnc0/gimli-devtools) with `composer require --dev danc0/gimliduck-devtools`

[Docs](https://dvnc0.github.io/gimli-php/)

Create a `.htaccess` file that looks something like this to point requests to your `index.php` file

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

```

Usage
-----

[](#usage)

Creating a GimliDuck application is simple:

```
declare(strict_types=1);
require_once __DIR__ . '/vendor/autoload.php';

use Gimli\Application;
use Gimli\Application_Registry;
use Gimli\Router\Route;

$App = Application::create(__DIR__, $_SERVER);

Route::get('/', function(){
	echo "Hello World";
});

Application_Registry::set($App);
$App->run();
```

That is really all you need to get started. You can add more like a template engine, a config file, etc, but you don't **have** to.

### A more complex example

[](#a-more-complex-example)

```
