Skip to content

Commit

Permalink
Merge pull request #13 from Lemon-Framework/v2.x
Browse files Browse the repository at this point in the history
Changed version and instalation, removed example
  • Loading branch information
tenmajkl authored Jun 25, 2021
2 parents 37d2b45 + 769f05a commit 8d7b725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 42 deletions.
40 changes: 5 additions & 35 deletions README.md
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();

?>

```
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@
"src/Http/Routing/Route.php",
"src/Utils/utils.php"
]
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Lemon-Framework/Examples"
}
]
}
}

0 comments on commit 8d7b725

Please sign in to comment.