PHPackages                             avoutic/web-framework - 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. avoutic/web-framework

ActiveLibrary[Framework](/categories/framework)

avoutic/web-framework
=====================

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.

11.7.2(3mo ago)32.5k7MITPHPPHP ^8.2CI passing

Since Jun 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/avoutic/web-framework)[ Packagist](https://packagist.org/packages/avoutic/web-framework)[ Docs](https://web-framework.com)[ RSS](/packages/avoutic-web-framework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (19)Versions (174)Used By (7)

WebFramework
============

[](#webframework)

[![Build Status](https://camo.githubusercontent.com/b34cb533431ec4be25aa1bcdcf44aa5e62a4faeb1f3a9dbbd346493c93d1903d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f61766f757469632f7765622d6672616d65776f726b2f6d61696e)](https://github.com/avoutic/web-framework/actions/workflows/ci.yml?query=branch:main)[![Latest Tag](https://camo.githubusercontent.com/6f8e6fed78dea34a02cc1e01aa9c091eb6ba0f68a1072069938a046c1576e2cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f61766f757469632f7765622d6672616d65776f726b)](https://packagist.org/packages/avoutic/web-framework)[![License](https://camo.githubusercontent.com/a074ed18ea01cf44c1ffd16e6912a3ed6abfdf94e11be5718ca93f568eff5c83/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61766f757469632f7765622d6672616d65776f726b)](https://packagist.org/packages/avoutic/web-framework)[![GitHub top language](https://camo.githubusercontent.com/0a2f2299c0b254705a2efdacd7afad6306a061d9adacd34fed48a4b06df63407/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f61766f757469632f7765622d6672616d65776f726b)](https://github.com/avoutic/web-framework)[![Coverage Status](https://camo.githubusercontent.com/a7d77f7177000c003b7c42a2effca5158f24a3b08c470695cd595cf04de60fa5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f61766f757469632f7765622d6672616d65776f726b2f62616467652e737667)](https://coveralls.io/github/avoutic/web-framework)

**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](https://www.slimframework.com/) 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.

Why WebFramework?
-----------------

[](#why-webframework)

- **Lightweight PHP Framework**: Built on Slim's minimal foundation, WebFramework adds only what you need
- **Laravel Alternative**: Get Laravel-like features (ORM, migrations, auth) without the heavy footprint
- **Slim Framework ORM**: Built-in Entity/Repository pattern for database operations
- **Slim Framework Authentication**: Complete user management flows (registration, login, password reset, email verification)
- **Secure-by-Default**: Security best practices built into the framework
- **PSR-7/PSR-15 Compliant**: Modern PHP standards throughout
- **Perfect for REST APIs**: Ideal for building lightweight PHP APIs and microservices

### WebFramework vs Laravel vs Slim

[](#webframework-vs-laravel-vs-slim)

FeatureSlimWebFrameworkLaravelLearning CurveLowLowMedium-HighFootprintMinimalLightweightHeavyORM❌ Manual✅ Built-in✅ EloquentMigrations❌ Manual✅ Built-in✅ Built-inAuthentication❌ Manual✅ Built-in✅ Built-inCaching❌ Manual✅ Built-in✅ Built-inQueueing❌ Manual✅ Built-in✅ Built-inBest ForAPIs, MicroservicesSmall-Medium Apps, APIsLarge 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.

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

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](INSTALL.md) for detailed setup instructions.

### Example: Building a REST API

[](#example-building-a-rest-api)

```
