kamsaf / elephantino
PHP micro web framework created for fun.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kamsaf/elephantino
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- phpmd/phpmd: ^2.15
- squizlabs/php_codesniffer: ^3.9
This package is auto-updated.
Last update: 2026-01-13 20:23:55 UTC
README
Elephantino
Description
Elephantino is a micro PHP web application framework created purely for fun and educational purposes.
Technologies and tools used:
- PHP 8.1
How to use
To create application using it first you need to install it in your project:
-
If you haven't created project yet run and go through its configuration:
composer init -
Include
Elephantinoin your project by running:composer require kamsaf/elephantino
By now you are ready to use it. To start project run script:
php vendor/kamsaf/elephantino/scripts/setup.php
or set up project manually by creating a new PHP file in your project directory and pasting this code:
<?php
use Elephantino\Core\App;
use Elephantino\Http\Response;
require_once __DIR__ . '/vendor/autoload.php';
$app = new App();
$app->get(
"/",
fn() => Response::json(['message' => 'Hello'])
);
$app->run(debug: true);
Now run server inside root directory of your project and access the file address in the browser.
Created by Kamil Safaryjski 2024