The Laravel Lumen Framework.

Overview

Lumen PHP Framework

Build Status Total Downloads Latest Stable Version License

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Official Documentation

Documentation for the framework can be found on the Lumen website.

Contributing

Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.

License

The Lumen framework is open-sourced software licensed under the MIT license.

Comments
  • Update .env.example

    Update .env.example

    It is not obvious that you need to specifically set a different DB_TIMEZONE when using Lumen.

    What I found is that if I had set the APP_TIMEZONE as this:

    APP_TIMEZONE=Australia/Sydney

    when I did this command in Lumen:

    DB::table('pings')->insert([ 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s')]);

    then the timestamps were wrong unless I also set

    DB_TIMEZONE=+10:00

    Its the only way I could get it to work.

    There are similar posts on Laracasts with people also talking about Lumen and DB timezone issues - like this: https://laracasts.com/discuss/channels/lumen/weird-timetimezone-behaviour?page=1

    and this: https://github.com/laravel/lumen-framework/issues/50 (at the end)

    p.s. do we really need a different DB Timezone? Shouldnt it just use the App Timezone?

    opened by laurencei 8
  • 404 error fix

    404 error fix

    Changed line #L28 to $app->run($app['request']); to prevent 404 error.

    More information:

    http://stackoverflow.com/a/30254364/2570054

    and

    http://stackoverflow.com/questions/30891405/not-found-page-in-lumen-after-install

    opened by sky93 6
  • Remove check for Hello World

    Remove check for Hello World

    There is no "Hello World" page on the default install, just displays "Lumen." So we should just be able to assert that the response is OK to get green on a default install, similar the default test on laravel/laravel.

    opened by mhanson01 5
  • Pass captured Request to Application.

    Pass captured Request to Application.

    Otherwise routing will not work for projects nested in folders because for path info $_SERVER's REQUEST_URI will be used which returns path relative to domain and not project url.

    opened by Premke 4
  • Update index.php

    Update index.php

    Fix for running with Apache, in Laravel\Lumen\Application class have run method which requires parameter which is passed as null as of now in case of apache.

    opened by aheshan 4
  • Eloquent Relations One To Many

    Eloquent Relations One To Many

    Hi, I'm learning and using Lumen, and it's a great framework.

    I have a problem:

    HasMany does not automatically associate the value of foreign key queries, and $localkey must be set. This makes me very confused, but the document is not introduced like this。

    Member Model

    namespace App\Http\Models;
    use Illuminate \Database\Eloquent\Model;
    class Member extends Model {
           public function products(){
                    return $this->hasMany(MemberProduct::class, 'uid');
            }
    }
    

    MemberProduct Model

    namespace App\Http\Models;use Illuminate \Database\Eloquent\Model;
    use Illuminate \Database\Eloquent\Model;
    class MemberProduct extends Model {
    }
    

    Test Controller Member::where('uid',1)->first()->products

    Generated SQL SQL 1:select * frommemberswhereuid= ? SQL 2: select * frommember_productswheremember_products.uidis null andmember_products.uidis not null

    This is obviously not what I want, and it's quite different from the https://laravel.com/docs/5.4/eloquent-relationships One To Many example

    Is there anything wrong with my writing? Or?

    opened by kaysonwu 3
  • Added possibility for rate limiting requests

    Added possibility for rate limiting requests

    I think since Lumen is used a lot for API's it would be nice to have the Laravel throttle middleware available. Only the resolveRequestSignature method had to be changed.

    opened by jbreuer95 3
  • Add DB_CHARSET and DB_COLLATION to .env.example

    Add DB_CHARSET and DB_COLLATION to .env.example

    I spent quite some time with the exception "Unknown character set: 'utf8mb4'", when hooking up Lumen to an older mysql installation, so I thought it might be a good idea to add it to the .env.example.

    opened by harmenjanssen 2
Owner
The Laravel Framework
The Laravel Framework
[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components

Silex, a simple Web Framework WARNING: Silex is in maintenance mode only. Ends of life is set to June 2018. Read more on Symfony's blog. Silex is a PH

Silex 3.6k Dec 22, 2022
Slim Framework 4 Skeleton Application

Slim Framework 4 Skeleton Application Use this skeleton application to quickly setup and start working on a new Slim Framework 4 application. This app

Slim Framework 1.5k Dec 29, 2022
A resource-oriented micro PHP framework

Bullet Bullet is a resource-oriented micro PHP framework built around HTTP URIs. Bullet takes a unique functional-style approach to URL routing by par

Vance Lucas 415 Dec 27, 2022
🐺 Lightweight and easy to use framework for building web apps.

Wolff Web development made just right. Wolff is a ridiculously small and lightweight PHP framework, intended for those who want to build web applicati

Alejandro 216 Dec 8, 2022
Silly CLI micro-framework based on Symfony Console

currentMenu home Silly CLI micro-framework based on Symfony Console. Professional support for Silly is available via Tidelift Video introduction in fr

Matthieu Napoli 862 Dec 23, 2022
Lemon is php micro framework built for simple applications.

Lemon is simple micro framework that provides routing, etc.

Lemon 20 Dec 16, 2022
Blink is a micro web framework for building long-running and high performance services

Blink is a micro web framework for building long-running and high performance services, the design heavily inspired by Yii2 and Laravel. Blink aims to provide the most expressive and elegant API and try to make the experience of web development as pleasant as possible.

Jin Hu 837 Dec 18, 2022
TidyPHP is a micro php framework to build web applications

TidyPHP is a micro MVC PHP Framework made to understand how PHP Frameworks work behind the scense and build fast and tidy php web applications.

Amin 15 Jul 28, 2022
StackSync is a simple, lightweight and native fullstack PHP mini-framework.

StackSync is a fullstack PHP mini framework, with an MVC structure, custom API system with a Middleware and JWT authentication, components based views, flexible routing, PSR4 autoloading. Essential files generation (migrations, seeders, controllers and models) and other operations can be executed through custom commands.

Khomsi Adam 3 Jul 24, 2022
PHP微服务框架即Micro Service Framework For PHP

Micro Service Framework For PHP PHP微服务框架即“Micro Service Framework For PHP”,是Camera360社区服务器端团队基于Swoole自主研发现代化的PHP协程服务框架,简称msf或者php-msf,是Swoole的工程级企业应用框

Camera360 1.8k Jan 5, 2023
Frankie - A frankenstein micro-framework for PHP

Frankie - A frankenstein micro-framework for PHP Features Frankie is a micro-framework focused on annotation. The goal is to use annotation in order t

null 19 Dec 10, 2020
ExEngine is an ultra lightweight micro-services framework for PHP 5.6+

ExEngine is an ultra lightweight micro-services framework for PHP 5.6+. Documentation Checkout the Wiki. Examples Click here to browse examples, also

linkfast.io 1 Nov 23, 2020
REST-like PHP micro-framework.

Phprest Description REST-like PHP micro-framework. It's based on the Proton (StackPhp compatible) micro-framework. Phprest gives you only the very bas

Phprest 312 Dec 30, 2022
An implementation of Solder in Laravel's Lumen Framework.

LumenSolder What is LumenSolder? An implementation of Solder in Laravel's Lumen Framework. LumenSolder is an application to help compliment and scale

Technic Pack 3 Sep 16, 2020
API for Symbiota using the Lumen PHP PHP Micro-Framework By Laravel

symbiota-api API for Symbiota using the Lumen PHP PHP Micro-Framework By Laravel Laravel Lumen Official Documentation Documentation for the Lumen fram

Biodiversity Knowledge Integration Center 2 Jan 3, 2022
Simple Video is a automated H264 encryption system built on Lumen Laravel Framework

Simple Video is a automated H264 encryption system built on Lumen Laravel Framework

Azril Nazli Alias 4 Oct 5, 2022
Volistx Framework For RESTful API Based on Laravel/Lumen 9.x

Volistx Framework Volistx Framework For RESTful API Based on Laravel/Lumen 9.x This is a framework skeleton for Volistx API platform using Lumen PHP F

Volistx Solutions 2 Nov 18, 2022
Rest API boilerplate for Lumen micro-framework.

REST API with Lumen 5.5 A RESTful API boilerplate for Lumen micro-framework. Features included: Users Resource OAuth2 Authentication using Laravel Pas

Hasan Hasibul 484 Sep 16, 2022
Teste dos mano do pay lá ft. Lumen Framework

Teste dos caras lá pay Avisos antes de começar Crie um repositório no seu GitHub sem citar nada relacionado a empresa dos cara lá. (CHECK) Faça seus c

Daniel Reis 24 Nov 7, 2022
File manager module for the Lumen PHP framework.

Lumen File Manager File manager module for the Lumen PHP framework. Please note that this module is still under active development. NOTE: Branch 5.1 i

Digia 40 Aug 20, 2022