PHPackages                             neoframework/neoframework - 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. neoframework/neoframework

ActiveProject[Framework](/categories/framework)

neoframework/neoframework
=========================

Neoframework

v1.1.7(1y ago)15PHP

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DiogoGraciano/NeoFramework)[ Packagist](https://packagist.org/packages/neoframework/neoframework)[ RSS](/packages/neoframework-neoframework/feed)WikiDiscussions main Synced today

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

NeoFramework
============

[](#neoframework)

NeoFramework is a modern and robust PHP framework that offers a complete structure for web application development. It provides a clean and organized architecture with advanced features for routing, validation, caching, and much more.

Main Features
-------------

[](#main-features)

- 🚀 Advanced Routing System with Attribute Support
- 🔒 Integrated Security System
- 📧 Email Management
- 📝 Template System
- 💾 Cache and File Storage
- 🧑‍💼 Jobs Queues
- 📋 Data Validation
- 🔐 Session Management
- 📊 Logging System
- 🎨 Asset Bundler
- 🔄 Dependency Injection Container

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- Composer
- Web server (Apache/Nginx)

Installation
------------

[](#installation)

1. Clone the repository:

```
composer create-project neoframework/neoframework your-project-name
```

2. Install dependencies:

```
composer install
```

3. Configure your environment:

- Copy the `.env.example` file to `.env`
- Adjust settings as needed

```
cp .env.example .env
```

Project Structure
-----------------

[](#project-structure)

```
your-project/
├── App/
│   ├── Commands/      # Application cli commands
│   ├── Controllers/   # Application controllers
│   ├── Models/        # Data models
│   ├── View/          # View templates
│   ├── Services/      # Business logic services
│   ├── Middleware/    # Request/Response middleware
│   ├── Helpers/       # Helper functions
│   └── Enums/         # Enumeration classes
├── Config/            # Configuration files
├── Logs/             # Application logs
├── Resources/        # Frontend assets
├── Tests/            # Tests Repository
├── Cache/           # Cache files
├── public/          # Public directory (web root)
└── vendor/          # Composer dependencies

```

Basic Usage
-----------

[](#basic-usage)

### Routing with Attributes

[](#routing-with-attributes)

```
use NeoFramework\Core\Attributes\Route;

class UserController
{
    #[Route("index",['GET','POST'])]
    public function index():Response
    {
        // Controller logic

        return $this->response;
    }

    #[Route("show/{:any}/{:num:optional}")]
    public function show(string $srt,int|float $id):Response
    {
        // Controller logic

        return $this->response;
    }
}
```

#### Rewrite of routes

[](#rewrite-of-routes)

```
your-project/
├── Config/
│   ├── route_rewrite.config.php    # Here you can configure a rewrite of a route

```

```
