Download the PHP package ayouberrak/freamwork without Composer
On this page you can find all versions of the php package ayouberrak/freamwork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package freamwork
# Ayoub Framework 🚀
A lightweight, robust, and modern PHP MVC framework designed for speed and simplicity. Built with a "Nadi" (Premium) philosophy.
✨ Features
- MVC Architecture: Clean separation of Models, Views, and Controllers.
- Custom CLI (
ayoub): Powerful command-line interface for scaffolding. - Dynamic Routing: Supports static routes and dynamic parameters (e.g.,
/user/{id}). - Database Agnostic: Native PDO support for MySQL and PostgreSQL.
- Pretty Error Handling: Integrated
Whoopsfor beautiful debugging. - Modern UI: Includes premium, glassmorphism-styled default views.
📦 Installation
-
Create a new project via Composer:
-
Configure Environment: Copy the example env file and configure your database.
Edit
.envto setDB_CONNECTION,DB_HOST,DB_DATABASE, etc. - Run the Server:
🛠️ CLI Commands (php ayoub)
The framework comes with a powerful CLI tool named ayoub to speed up your development.
🚀 Server Commands
Start Development Server
Start the built-in PHP development server.
Starts server on http://localhost:8000
Custom Port:
Starts server on http://localhost:3000
📝 Scaffolding Commands
Make Controller
Generate a new controller class.
Creates: app/Controllers/UserController.php
Example:
Make Model
Generate a new database model.
Creates: app/Models/Product.php
Example:
Make Service
Generate a business logic service.
Creates: app/Services/PaymentService.php
Example:
Make Repository
Generate a data repository.
Creates: app/Repositories/OrderRepository.php
Example:
💡 Tip: Suffixes are optional!
php ayoub make:controller Userwill automatically generateUserController.
🛣️ Route Commands
Make Route
Generate a new route and append it to routes/web.php.
Examples:
List All Routes
Display all registered routes in your application.
Output Example:
📋 All Commands Summary
| Command | Description | Example |
|---|---|---|
run [port] |
Start development server | php ayoub run 8000 |
make:controller <Name> |
Create a controller | php ayoub make:controller UserController |
make:model <Name> |
Create a model | php ayoub make:model Product |
make:service <Name> |
Create a service | php ayoub make:service AuthService |
make:repository <Name> |
Create a repository | php ayoub make:repository UserRepository |
make:route <method> <uri> <action> |
Create a route | php ayoub make:route get /users UserController@index |
route:list |
List all routes | php ayoub route:list |
🛣️ Routing
Define your routes in routes/web.php.
Static Route:
Dynamic Route:
View Rendering:
📂 Structure
app/- Core logic (Controllers, Models, Services).public/- Entry point (index.php).routes/- Route definitions.views/- HTML templates.config/- Configuration files.
Built with ❤️ by Ayoub.
All versions of freamwork with dependencies
vlucas/phpdotenv Version ^5.6
filp/whoops Version ^2.18
eftec/bladeone Version ^4.19