A lightweight, secure-by-default PHP microframework built on Slim – providing Laravel-like features (ORM, authentication, migrations, caching) without the bloat. Perfect for building REST APIs and small-to-medium PHP applications.
avoutic/web-framework is a Laravel package for a lightweight, secure-by-default php microframework built on slim – providing laravel-like features (orm, authentication, migrations, caching) without the bloat. perfect for building rest apis and small-to-medium php applications..
It currently has 5 GitHub stars and 3.257 downloads on Packagist (latest version 11.7.2).
Install it with composer require avoutic/web-framework.
Discover more Laravel packages by avoutic
or browse all Laravel packages to compare alternatives.
Last updated
A lightweight, secure-by-default PHP microframework built on Slim – providing Laravel-like features (ORM, authentication, migrations, caching) without the bloat.
WebFramework is a companion framework that extends the Slim Framework with a cohesive set of services for database management, ORM, caching, authentication, middleware, templating, and more. Perfect for developers who love Slim's simplicity but need full-featured components for building modern PHP applications and REST APIs.
| Feature | Slim | WebFramework | Laravel | |---------|------|--------------|---------| | Learning Curve | Low | Low | Medium-High | | Footprint | Minimal | Lightweight | Heavy | | ORM | ❌ Manual | ✅ Built-in | ✅ Eloquent | | Migrations | ❌ Manual | ✅ Built-in | ✅ Built-in | | Authentication | ❌ Manual | ✅ Built-in | ✅ Built-in | | Caching | ❌ Manual | ✅ Built-in | ✅ Built-in | | Queueing | ❌ Manual | ✅ Built-in | ✅ Built-in | | Best For | APIs, Microservices | Small-Medium Apps, APIs | Large Applications |
Use WebFramework if: You want Slim's simplicity with Laravel's convenience, or you're building a small-to-medium application that doesn't need Laravel's full feature set.
Install WebFramework via Composer:
composer require avoutic/web-framework
Or start with a skeleton project:
composer create-project avoutic/web-framework-skeleton
See the Installation Guide for detailed setup instructions.
<?php
// actions/GetUser.php
namespace App\Actions;
use WebFramework\Repository\UserRepository;
class GetUser
{
public function __construct(
private UserRepository $userRepository,
) {}
public function __invoke(Request $request, Response $response, array $routeParams): ResponseInterface
{
$user = $this->userRepository->find($routeParams['id']);
return $response->withJson($user);
}
}
Check out the example application for a complete working demo.
WebFramework applications typically have the following directory structure:
index.php and external static files like images, CSS, and JavaScript.Complete documentation is available at web-framework.com.
Extend WebFramework with optional modules for specific needs:
See the modules documentation for details.
WebFramework is open-source software licensed under the MIT license.
Contributions are welcome! Whether you're fixing bugs, adding features, or improving documentation, your help makes WebFramework better for everyone.
Before opening an issue or pull request, please read CONTRIBUTING.md.
main, then open a pull request back to main.php-cs-fixer configuration before submitting.vendor/bin/phpstan
vendor/bin/codecept run
By submitting a contribution, you agree that your work is licensed under the MIT License, in line with the project’s license.
This project follows the Contributor Covenant Code of Conduct.
If you discover a security vulnerability, do not open a public issue.
Instead, report it via GitHub Security Advisories so we can coordinate a fix.
For full details, including response timelines and supported versions, see SECURITY.md.
Made with ❤️ for the PHP community