Giter VIP home page Giter VIP logo

niga's Introduction

Niga framework

NigaPHP is a lightweight PHP web application framework designed to simplify and speed up the development process for PHP developers. It was initially created by Abass Dev and has since been maintained and contributed to by a community of developers. With its user-friendly interface and powerful features, NigaPHP has become a popular choice for building scalable and secure web applications.

GitHub pull requests Issues

Niga

Prerequisites

  1. PHP => 8.0
  2. PHP Composer => 2.0
  3. PDO
  4. XML
  5. ZIP
  6. MBSTRING

Note: Niga framework is not ready for production application yet.

Getting Started

Let's discover NigaPHP Framework in 5 minutes.

Get started by creating a new Website.

Installation

composer create-project nigaphp/niga site_name

You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.

The command also installs all necessary dependencies you need to run NigaPHP.

Development server

Change directory to your new website my-website

cd my-website
niga run:dev

Default values [HOST=localhost, PORT=8000, PUBLIC_PATH=public] you can change this in the config file %APP_ROOT%/config/app.json

Then open the this link in your web browser http://localhost:8000/.

Create a controller

niga make:controller HomeController

In this situation, we are creating a controller for the home page.

This command will create two new files for us.

  1. src/Controler/HomeController.php

Here is your new controller class.

<?php
namespace App\Controller;

use Niga\Framework\Controller\AbstractController;
use Niga\Framework\Attributes\Route;

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

}
  1. views/home.php

And this is the view to rendered.

<?php if ($cName && $cPath) : ?>
    <h3>Hello <span class='be-color-py be-code'><?= $cName ?></span></h3>
    <p>Your <span class='be-color-py be-code'><?= $cName ?></span> class is located at <span class='be-color-py be-code'><?= $cPath ?></span> !</p>
<?php endif ?>

Contact us

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

niga's People

Contributors

abass-dev avatar nigatedev avatar abasslab avatar maikuolan avatar nigaphp avatar

Stargazers

Rizky Aditya N avatar Muhammad Ricky Perdana Putra avatar Ahmad Husein Hambali avatar Enricko Putra Hartono avatar Andrio Pratama Sirait avatar Rafi Gusti Kurniawan avatar Ahmada Yusril avatar Akbar Maliki avatar Ikhsan Satriadi avatar Afif Pratama avatar Joy Boy avatar Naufal Reky Ardhana avatar Negesis23 avatar Ikramullah Latif avatar Yudha Haris Purnama avatar Ari Kurniawan avatar DAVID avatar Clovis S.J Onadja avatar Chanda Chewe avatar Abdulsalam Ishaq avatar DevMirza avatar Ibrahim Boubacar avatar Abassdev avatar  avatar  avatar

Watchers

 avatar

niga's Issues

Not working

Hi, I was going through your repo brah, its not working dawg.

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.