-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Lemon-Framework/v2.x
Changed version and instalation, removed example
- Loading branch information
Showing
2 changed files
with
6 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,16 @@ | ||
# Lemon | ||
|
||
Lemon is php micro framework built for simple applications.\ | ||
Latest version: 2.3.0\ | ||
Latest version: 2.3.1\ | ||
Documentation: https://lemon-framework.github.io//docs.html | ||
|
||
# Installation | ||
|
||
Installation is provided via composer:\ | ||
`composer create-project lemon_framework/lemon:dev-master project-name` | ||
`composer require lemon_framework/lemon` | ||
|
||
If you don't have composer, you can use curl:\ | ||
`curl -s "https://raw.githubusercontent.com/Lemon-Framework/Examples/master/downloader" | bash` | ||
After installing its recommended to run this script: `curl -s 'https://raw.githubusercontent.com/Lemon-Framework/ProjectBuilder/master/builder' | bash`\ | ||
It will download you basic files that you will need with every project | ||
|
||
If you want to build starting app type `php lemonade build type:project` | ||
If you want to build bigger starting app type `php lemonade build type:project` | ||
|
||
# Minimal app | ||
|
||
Here is code of simple app build only in index.php | ||
|
||
```php | ||
|
||
<?php | ||
require "/lemon/framework.php"; | ||
use Lemon\Routing\Route; | ||
|
||
Route::get("/relative/{var}/", function($var) | ||
{ | ||
echo $var; | ||
}); | ||
|
||
Route::any("/", function() | ||
{ | ||
echo "hi"; | ||
}); | ||
|
||
Route::handler(404, function() | ||
{ | ||
echo "404"; | ||
}); | ||
|
||
Route::execute(); | ||
|
||
?> | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters