Download the PHP package vinlon/laravel-skeleton without Composer

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

Laravel Skeleton 应用开发基础模板

更新日志

v0.2.0 升级larvel版本到8.x,默认引入调试工具telescope, 查看telescope使用文档 v0.1.9: 自定义 make:model 和 make:enum 命令使用的 stub 模板,适量减少重复性的工作

功能

laravel/laravel:7.x 的基础上增加以下功能

使用

使用composer create-project 创建项目

执行 php init, 然后按提示进行操作,对项目进行初始化

日期格式

从 laravel 7 开始,调用 Eloquent Model 的 toArray方法,日期字段的输出格式为 2020-12-10T09:28:59.000000Z

可通过在 Model 中 use SerializeDateTrait;

或 extend BaseModel

将日期输出格式修改为 2020-12-10 09:28:59

IDE-Helper

目前只用到了 ide-helper-models, 使用 @mixin 方式,对 Model 类的影响最小,将变化集中到 _ide_helper_models.php 文件中

可使用如下命令生成 _ide_helper_models.php 文件

或者使用 composer 命令

代码格式化

手动执行

使用 git-hook 在提交代码时自动执行

在 composer.json 文件中,为 pre-commit 和 pre-push 事件定义了 git-hook.

  1. pre-commit: 在 commit 代码前会调用 fix-staged-php-files 脚本,该脚本会修复所有待提交文件的格式。
  2. pre-push: 在 push 代码前会检查所有 php 文件,如果有需要格式化的文件则 push 失败, 此时需要手动执行 composer fix-style, 然后 commit 格式化后的代码,再重新 push。

Enum的使用

常用功能

创建Enum类
Eloquent Model 属性转换
自定义 $model->toArray() 的行为
数据验证
定义 description 属性
常用静态方法

生成注解

参考

https://github.com/overtrue/laravel-skeleton


All versions of laravel-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
bensampo/laravel-enum Version ^3.0
fideloper/proxy Version ^4.4
fruitcake/laravel-cors Version ^2.0
guzzlehttp/guzzle Version ^7.0.1
laravel/framework Version ^8.0
laravel/tinker Version ^2.5
vinlon/laravel-sql-logger Version ^0.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 vinlon/laravel-skeleton contains the following files

Loading the files please wait ....