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.5.0 2025-10-31 12:43 UTC

This package is auto-updated.

Last update: 2025-10-31 12:44:53 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
base_path() Resolve base project paths
config() Get or set configuration values
dump() / dd() Debugging utilities
env() Read environment variables
request() Get current HTTP request
response()/ json() Create HTTP response
router() / route() Access router instance
session()/ render() Read, write, or access session store
view() Render or return view instance

๐Ÿงช Testing

You can run tests with the command:

composer test

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

Kirill Kolesnikov

๐Ÿ“œ License

MIT