Download the PHP package yanzicms/light-rail without Composer

On this page you can find all versions of the php package yanzicms/light-rail. 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 light-rail

轻轨(lightRail)框架

轻轨(lightRail)框架是一款PHP语言编写的应用框架,主要是用于替换自己手上的一些旧项目中的thinkphp5框架。

由于这几年PHP发展比较快速,而thinkphp5已经比较难适应新的发展,自己手中有几款开发多年的系统,原先基于thinkphp5框架开发的,在新的PHP环境下,每次PHP升级就需要花费大量时间去修正thinkphp5框架的代码。

由于这些问题困扰,所以最终决定一次性解决问题,开发一款新的框架,同时保留原来thinkphp5的语法习惯,这样可以做到基本不改动现有代码的情况下进行框架替换。

这款新框架我称之为“轻轨(lightRail)”。轻的意思是指新框架执行效率高,实际框架执行效率远高于thinkphp5,轨指的是遵循了thinkphp5的语法轨迹。

相关说明

轻轨框架并不是对所有thinkphp5语法的全实现,主要是对于自己的旧项目中已经使用的语法实现,所以如果您有一些不常用的语法在旧项目中,那么可能替换会有些问题,当然如果您遇到类似问题也可以直接QQ:804644245联系我进行反馈,我看情况是否能增加这些不常用语法。

另外,在轻轨框架里面我去除了一些奇葩的语法使用,例如下面的数据库操作代码:

Db::field('user.name,role.title')->table('think_user user,think_role role')->limit(10)->select();

在轻轨里面可以使用下面比较正常的方式来写:

Db::table('think_user user,think_role role')->field('user.name,role.title')->limit(10)->select();

更多的区别可以参看鲶鱼cms官网相关内容。

安装lightRail

轻轨框架使用Composer方式安装,可以使用下面的Composer命令进行安装:

composer create-project yanzicms/light-rail-app light-rail

框架协议

轻轨(lightRail)框架使用Apache-2.0开源协议发布,如果有跟我同样需要的开发者,可以拿去使用。


All versions of light-rail with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-mbstring Version *
ext-gd Version *
ext-json Version *
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 yanzicms/light-rail contains the following files

Loading the files please wait ....