Download the PHP package f-oris/laravel-extension without Composer

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

Laravel extension

Build Status codecov Latest Stable Version Latest Unstable Version Total Downloads

简介

laravel框架扩展包,可用于快速实现后端项目构建。

运行环境

version php laravel
1.x >=7.1 5.5 ~ 6.*
2.x >=7.3 7. ~ 8.

安装

通过composer安装

publish扩展包配置文件

打开bootstrap/app.php文件,添加路由注册代码

使用教程

首先执行资源创建命令

打开生成的迁移文件,完善资源数据表结构

执行迁移命令

打开生成的模型文件,修改如下

打开api路由文件,增加路由

执行查看路由命令,检查路由是否正确

执行请求,检查资源操作是否异常,以查看资源列表为例

请求正常的情况选返回结果如下

扩展资源操作

以增加更改资源信息状态操作为例,首先修改上一步骤生成的model文件,如下

修改生成的ResourceRepository文件,如下

修改生成的ResourceService文件,如下

修改生成的ResourceController文件,如下

打开配置文件app-ext.php,找到resource_route配置,修改如下

执行创建资源请求,创建一个资源信息

执行查看资源信息请求,查看资源状态

请求成功的话,查看到的资源信息应该如下,此时status值为1,即为启用状态

执行禁用资源信息请求,禁用该资源信息

再次执行查看资源信息请求,查看资源状态,此时资源状态应更改为0,即禁用状态

License

MIT License

Copyright (c) 2019-present F.oris [email protected]


All versions of laravel-extension with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version ^5.5|^6.0
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 f-oris/laravel-extension contains the following files

Loading the files please wait ....