Giter Club home page Giter Club logo

bird's Introduction

Bird

Installation


https://github.com/AlFarizzi/bird.git
cd path/to/bird
composer install
cd public
php -S localhost:8000

Routing


if you've used laravel, then routing is thid framework will suit you perfectly,you only need to open the Router/web.php

Router::get("/dashboard", [HomeController::class, 'index']);

Controller


Make controller


//open your terminal & go to root project

./bird make:controller ControllerName

the result oh the above comment will be saved in the Controllers folder

Base Controller


The controller you have created is a copy of the file in the **command/base_controller/Base.php,ย **

You can customize this file according to your needs

<?php
namespace  Fariz\bird\app\controllers;
use  Fariz\bird\app\controllers\Controller;
use  Fariz\bird\app\core\Request;
use  Fariz\bird\app\exception\ValidationException;
use  Fariz\bird\app\core\Connection;

// $params variable must be passed as a parameter to each method

class HomeController extends Controller{
    // Controller RULE  
    // public function nameFunction($params = [])
    
    public function index($params = []) {
        $db = new Connection();
    }
}

bird's People

Contributors

alfarizzi avatar

Stargazers

Roman avatar  avatar

Watchers

 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.