Skip to content

Releases: Lemon-Framework/Lemon

3.0.0

03 Aug 18:14
Compare
Choose a tag to compare

This is Lemon 3.

After more than year of work its here. Update that was meant to only add database and changed everything.

Whats new? Well Everything.

citrony.mp4

2.6.9 RouteGroup features

22 Jan 18:47
Compare
Choose a tag to compare

Route::controller now returns RouteGroup which has new method for manipulating with middlewares, names and paths.

2.6.8 Bug fixes && Route::view

12 Jan 21:18
Compare
Choose a tag to compare

This update fixes lemonade serve for dirs with space and Route::controller request methods. It has also included Route::view

Most of it is by @CoolFido

2.6.7 Cleaner templates

12 Dec 14:40
Compare
Choose a tag to compare

This update removed ability to write <?php in lemon templates.

2.6.6 Bug fixes

21 Nov 13:59
729f072
Compare
Choose a tag to compare

This patch fixes nested route groups and now you don't need to have middlewares in route groups.

Also big thanks comes to @ordago which refactored the code ❤️

2.6.5 Http improvements

25 Sep 20:44
a0bd0bc
Compare
Choose a tag to compare

Add:

  • Route::controller resources with this scheme:
        "controllerMethod" => ["request_method", "url"],

        "index" => ["get", "/"],
        "create" => ["get", "/create"],
        "store" => ["get", "/create"],
        "show" => ["get", "/{target}"],
        "edit" => ["get", "/{target}/edit"],
        "update" => ["post", "/{target}"],
        "delete" => ["get", "/{target}/delete"]

When your controller has any of those methods, it will create route for them with specified request method and url patern.

Changed:

  • MiddlewareKernel to MiddlewareCollection
  • When / is in dynamic route parameter, it won't be considered as part of parameter:
Route::get("/lemons/{id}", function($id) {
    // ...    
});

// /lemons/1 will be accepted as part of this route
// lemons/1/hi will be accepted as part of /lemons/{id}/hi, in this case it will throw 404

2.6.4 MiddlewareKernel

16 Sep 19:52
761a80c
Compare
Choose a tag to compare

Changed:

  • Middlewares are called from new MiddlewareKernel and they support returning response.

2.6.3 Route::controller Grouping

15 Sep 20:15
76e486e
Compare
Choose a tag to compare

Added:

  • Grouping routes generated with Route::controller

2.6.2 New route features

15 Sep 18:37
abc374f
Compare
Choose a tag to compare

Added:

  • Nested route groups
  • To_route dynamic routes

Removed:

  • Obligation to return valid statements in route callback

2.6.1 Route controller & Bug fixes

08 Sep 18:25
acd4ec0
Compare
Choose a tag to compare

Add:

  • Route::controller which creates route for every route named as request method

Fix:

  • Constants
  • Booter