Elegant and lightweight PHP framework for modern web applications

Installs: 23

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/codemonster-ru/annabel

v1.1.1 2025-10-19 16:15 UTC

This package is auto-updated.

Last update: 2025-10-19 16:17:08 UTC


README

Latest Version on Packagist Total Downloads License Tests

Elegant and lightweight PHP framework for modern web applications.

๐Ÿ“ฆ Installation

composer require codemonster-ru/annabel

๐Ÿš€ Quick Start

// public/index.php
require __DIR__ . '/../vendor/autoload.php';

$app = require __DIR__ . '/../bootstrap/app.php';
$app->run();

// bootstrap/app.php
use Codemonster\Annabel\Application;

$baseDir = __DIR__ . '/..';

$app = new Application($baseDir);

require "$baseDir/routes/web.php";

return $app;

// routes/web.php
router()->get('/', fn() => view('home', ['title' => 'Welcome to Annabel']));

๐Ÿงฉ Helpers

Function Description
app() Access the application container
config() Get or set configuration values
env() Read environment variables
view() Render or return view instance
router() Access router instance
dump() / dd() Debugging utilities
base_path() Resolve base project paths

๐Ÿงช Testing

You can run tests with the command:

composer test

๐Ÿ‘จโ€๐Ÿ’ป Author

Kirill Kolesnikov

๐Ÿ“œ License

MIT