Photon is a Lightweight PHP MVC Framework 💡
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();
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();
}
}
Photon is powered by Clint.Network.