aldrin112602 / NextIgnite

Light-weight PHP framework for building dynamic web applications using MVC architecture pattern ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextIgnite

NextIgnite is a light-weight PHP framework designed for building full-stack web applications. It aims to provide a simple and efficient structure to help you quickly develop robust web applications with ease.

Features available or to be Implemented

  • MVC Architecture: Clean separation of concerns with a Model-View-Controller architecture.
  • Routing: Simple and flexible routing system.
  • ORM: Built-in Object-Relational Mapping for database interactions.
  • Templating: Easy-to-use templating engine.
  • Middleware: Support for middleware to handle requests and responses.
  • Validation: Comprehensive validation library.

Installation

  • clone this repository
  • cd NextIgnite
  • composer install

Available CLI Commands

Command Description Output
php ignite serve Starts the development server at: http://localhost:8000/ -
php ignite make:view SampleView Creates a view file app/Views/SampleView.nxt.php
php ignite make:view auth.signUp Creates a view file in the auth directory app/Views/auth/signUp.nxt.php
php ignite make:controller MyController Creates a controller file app/Controllers/MyController.php
php ignite make:controller admin.MyController Creates a controller file in the admin directory app/Controllers/admin/MyController.php
php ignite make:model SampleModel Creates a model file app/Models/SampleModel.php
  1. Create a new project directory:

    mkdir my-nextIgnite-app
    cd my-nextIgnite-app
  2. Using Composer (Not available for now)

    composer require next-ignite/next-ignite
  3. Application structure:

    ├── app
    │   ├── Controllers
    │   ├── Models
    │   ├── Views
    ├── public
    │   ├── index.php
    ├── routes
    │   ├── web.php
    ├── .env
    ├── composer.json
    └── README.md
    ...more
  4. Configure your application:

    • Update the .env file with your environment settings.
    • Define your routes in routes/web.php.
  5. Start building your application:

    • Create controllers in the app/Controllers directory.
    • Create models in the app/Models directory.
    • Create views in the app/Views directory.

Contributions

  • Your feedback and contributions are highly appreciated.

License

NextIgnite is open-source software licensed under the MIT license.

About

Light-weight PHP framework for building dynamic web applications using MVC architecture pattern ✨

License:MIT License


Languages

Language:PHP 100.0%