Skip to content

imclint21/photon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Photon PHP Framework

Photon is a Lightweight PHP MVC Framework 💡

How to Ignite?

To use Photon you only need to add theses lines into your index.php folder and create some folders.

require_once(__DIR__ . "/photon.php");
$photon = new Photon();
$photon->ignite();

Really Simple to Use

If you want to try Photon you can easily download this example.

class Home 
{
    public function index()
    {
        return view();
    }

    public function about()
    {
        Photon::$viewbag = "This is the about page.";
        return view();
    }

    /**
     * @route /privacy-policy
     */
    public function privacy()
    {
        return view();
    }
}

Credits

Photon is powered by Clint.Network.