Giter VIP home page Giter VIP logo

nigatedev's Introduction

NigateDev framework

Nigatedev is a time-saving PHP framework coded by Abass Ben Cheik and contributors

GitHub pull requests Issues

Nigatedev

Prerequisites

"php": "^7.4|^8.0",
"ext-pdo_mysql": "*",
"ext-pdo_pgsql": "*",
"ext-pdo_sqlite": "*",
"composer": "^2.0"

Note: Nigatedev framework is not ready for production application at this time.

Installation

$ composer create-project nigatedev/nigatedev site_name

Basic usage

It is strongly recommend to use composer to install Nigatedev framework from packagist instead of cloning this repository, if you want to become a contributor please contact [email protected]

If you already have composer installed you can use the following command to create your web application with Nigatedev framework.

$ composer create-project nigatedev/nigatedev site_name

This command will create a web application in the site_name directory on your machine. For a complete documentation, have a look at Nigatedev Docs.

Controller

Create a controller using (Nigatedev Console Maker)

1. default example
$ bin/niga make:controller HomeController
2. shortcut example
$ bin/niga m:c HomeController

What happens after creating a controller using the nigatedev console?

1. src/Controller/HomeController.php # Create controller class
2. views/home.php # Create the file views/home.php or views/home.twig depending on the chosen template engine twig|diyan, by default diyan is used !
3. config/loader.php # Update controllers loader

Entity

Create an entity using (Nigatedev Console Maker)

1. default example
$ bin/niga make:entity ProductEntity
2. shortcut example
$ bin/niga m:e ProductEntity

Then following the instructions.

What happens after creating an entity using the nigatedev console? It will only generate one file for you

1. src/Entity/ProductEntity.php # The entity class

Routing

<?php
namespace App\Controller;

use Nigatedev\FrameworkBundle\Controller\Controller;
use Nigatedev\FrameworkBundle\Http\Request;
use Nigatedev\FrameworkBundle\Attributes\Route;

class SiteController extends AbstractController
{
    #[Route('/', name:'home', method:'get')]
    public function home() {
        return $this->render("home", [
            "name" => "home"
        ]);
    }

    #[Route('/contact', name:'contact', method:'get|post')]
    public function contact(Request $request) {
        return $this->render("contact", [
            "name" => "contact"
        ]);
    }
}

Contact

If you want to contribute to this famous framework or if you found any bug, Please contact us here [email protected] / [email protected]

nigatedev's People

Contributors

abass-dev avatar nigatedev avatar abasslab avatar maikuolan avatar

Stargazers

DevMirza avatar Abassdev avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.