Larasymf, PHP Framework
Larasymf, as its says is a mini framework for medium sized projects based on laravel and symfony packages
We have not yet written a documentation for the framework but if you know how to use Laravel or Symfony or any framework based on the MVC concept, you can already start using it
Usage
-
Clone the project
-
If you know how to handle the command line, turn on the project on any port and consult it in the browser
. If you do not master the command line download the project in xamp or wamp or other, open it in your browser like all your projects.
-
You must see at the reception: Welcome to Larasymf.
-
Go to the routes folder then to the route file
- Add this line to the array
addRoute('/test', ['test_controller', 'index']);
- Add this line to the array
-
Go to the app/Pages folder then create a test_controller.php file
-
Put the following code in front
function index(){ return view('test_view.php',[ 'variable'=>'John' ]); }
7. Go to the views folder And create a test_view.php
file Put html code in it with the following code ;
If everything went well you should have your code working perfectly :(
You just used larasymf Get inspired by this and create whatever you like
Important:
The first version of this framework is not yet official, we continue to develop it.