Download the PHP package litp/laravel-on-sae without Composer

On this page you can find all versions of the php package litp/laravel-on-sae. 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 laravel-on-sae

Laravel on SAE

Laravel on SAE 是修改过彻底解决了putenv和本地写问题的Laravel,因而它可以在SAE上完美地运行。

一次性彻底解决问题并且适应各个版本的Laravel。

解决putenv被禁用

SAE禁用了putenv函数(其他很多开发平台也同样会禁用putenv),Laravel中使用的phpdotenv模块不能正常使用。

Laravel on SAE 使用sae-phpdotenv替代phpdotenv,然后修改env()函数使其从全局变量$_ENV中获取变量,从而使phpdotenv可以在禁用putenv的平台中正常使用。

本地写被禁止

SAE只允许通过git或者svn上传代码,并且代码在运行过程中对文件系统只有读取权限没有写入权限。

在Laravel 5中需要进行本地写操作的地方有:

  1. 模板编译
  2. 缓存类
  3. 日志处理
  4. Session类
  5. 服务提供者缓存

参考 夏天的风博客

解决的办法是使用SAE提供的Storage的文件Wrapper,把需要本地写的内容存到SAE Storage中。

具体操作为:

  1. 在SAE Storage 中新建一个bucket, 名字为 laravel
  2. 完成。

详细原理和细节请参考 [这里]()。

因为在Laravel中这些相关的写操作的目录都被硬编码在Laravel Framwork中,所以不能通过修改配置而只能通过修改laravel framework的源码来实现。 Sae-laravel-framework就是我fork自laravel官方framework并在相应地方做了修改的版本,使用时只需用它替换composer.json中的laravel/laravel即可。

感谢

欢迎提供各种意见及建议。


All versions of laravel-on-sae with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
laravel/framework Version 5.2.*
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 litp/laravel-on-sae contains the following files

Loading the files please wait ...