Download the PHP package yangze/lamen without Composer

On this page you can find all versions of the php package yangze/lamen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lamen

Lamen: laravel along with lumen

在laravel框架中支持Lumen的运行,运行模式包含php-fpm和swoole两种模式。

Lumen可以使用Laravel框架大分部代码,包含配置,路由,控制器,模型,集合,缓存,队列,事件

目前代码先在laravel5.5中测试 在仓库swooletw/laravel-swoole基础上修改 貌似注意事项好多,有问题请留言

快速上手

务必注意Lumen bug,看本页Lumen bug说明

1、安装包

2、修改config/app.php,添加provider引用

3、发布配置文件

4、修改config/lamen.php文件(重要,影响程序运行

变量说明

名称
FRAME_WORK_NAME 当前框架的名称 laravel 或者 lumen

5、运行 以laravel模型运行

以lumen模式运行

以nginx+php-fpm模式运行

注意修改public/lamen.php文件,将其设置为入口文件。有2种方法,2选1:

配置文件说明

运行方式

备注说明

已知问题

1、路由正则配置模式有差别,在针对lumen的路由中不要出现laravel路由相应的写法,否则会提示route找不到或者为空的情况

2、laravel中获取路由参数和Lumen中获取路由参数不一样,需要写兼容方法调用 在lumen的collection或者middleware中使用request()->get(),request()->all(),

需要修改成

在post中可以使用request()->input

3、Lumen bug

修改文件: vendor/laravel/lumen-framework/src/Console/ConsoleServiceProvider.php,将代码

修改为:


All versions of lamen with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.5.*
laravel/lumen-framework Version 5.5
illuminate/console Version ~5.1
illuminate/contracts Version ~5.1
illuminate/http Version ~5.1
illuminate/support Version ~5.1
predis/predis Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yangze/lamen contains the following files

Loading the files please wait ....