Recommend this page to a friend! |
Classes of Zimo Xiao | Angel Framework | README.md | Download |
|
Download <p align="center"><img width="220" src="https://xy.zuggr.com/file/angel.jpg"></p> Angel is a lean PHP framework that focuses on rapid prototyping for web applications. InstallationInstall with Composer using the following command:
Server SetupIf you are running a Nginx server, add the following line in nginx.conf to enable URI redirect and restart server.
For Apache servers, first, uncomment the following line in httpd.conf.
Then, add the following line and restart server.
Getting StartedCreate your first page using build::get() module. Create a PHP file name hello_world.php, under folder /build.
As shown above, build::get() method contains two parameters: a router:yoursite.com/hello/[a_variable_name_input], variables in url are defined by[brackets]*. * a function: a block of code (codeblock) that will execute when user visits the router's path using GET request. So now, if you visit yoursite.com/angel/fly:
DocumentationRead our wiki on GitHub! Roadmap
|