Download the PHP package bowens-h/laravel-graphql-extend without Composer

On this page you can find all versions of the php package bowens-h/laravel-graphql-extend. 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-graphql-extend

Laravel GraphQL Extend

Folkloreatelier/laravel-graphql 包的功能扩展。扩展功能如下:

  1. 新增 Column 类型文件,用于映射数据表字段,输出的数据可以被 Type 类型文件的 fields 方法使用,主要避免数据表字段的重复定义;
  2. Type 类型文件的 fields 方法中字段可以根据表字段自动生成;

安装

依赖:

1- 安装 Folkloreatelier/laravel-graphql 包

2- composer.json 添加包

3- 进行 composer 安装

Laravel >= 5.5.x

1- 发布配置文件

2- 查看配置文件

Laravel <= 5.4.x

1-config/app.php 文件添加服务提供者

2- 发布配置文件

3- 查看配置文件

命令

创建 Column 类型文件

如果某表字段为 json 类型,则该字段的 type 属性 命令默认生成为空数组([]),需要自己手动写入对应键值,如果是数组,请用中括号包裹。例如

Type 类型文件生成命令

在 folklore/graphql 包的原命令基础上,增加了 「--table=」 参数,可以根据表生成对应字段,当 Type 类型文件中的字段不需要复用时,可以使用这个命令快速根据表生成字段。

用法

配置

doctrine/dbal 包自动识别 mysql 中的 TinyInt 类型为 Boolean,因此该类型对应 graphql 类型为 Type::boolean()。

Column

Column 类最后输出的结果,专用于 Type 类型的 fields 方法中。

make

根据 TestColumn 生成 Column 实例,第一个参数为通过 make:graphql:column 生成的 Column 类型文件,当该 Column 被用于包含 InputObject 属性的 Type 类型文件中,第二个参数则需为 true(默认 false)。只有当调用 Column::make 后才可以使用其他方法。

append

新增字段。

only

只保留 TestColumn 中的 id 字段。

except

排除 TestColumn 中的 id 字段。

nonNull

将 TestColumn 中的 某些字段设置为 Type::nonNull。

result

输出最终结果。


All versions of laravel-graphql-extend with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*
folklore/graphql Version ~1.0|~1.1
doctrine/dbal Version 2.5.*|2.6.*|2.7.*|2.8.*
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 bowens-h/laravel-graphql-extend contains the following files

Loading the files please wait ....