PHPackages                             ayimdomnic/graph-ql-l5.3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ayimdomnic/graph-ql-l5.3

ActiveProject[API Development](/categories/api)

ayimdomnic/graph-ql-l5.3
========================

Facebook GraphQl for Laravel developers

v2.0.1-Stable(9y ago)315[1 PRs](https://github.com/ayimdomnic/GraphQl-L5.3/pulls)MITPHP ^7.0

Since Aug 27Compare

[ Source](https://github.com/ayimdomnic/GraphQl-L5.3)[ Packagist](https://packagist.org/packages/ayimdomnic/graph-ql-l5.3)[ RSS](/packages/ayimdomnic-graph-ql-l53/feed)WikiDiscussions Synced today

READMEChangelog (5)Dependencies (5)Versions (9)Used By (0)

GraphQl-L5.3 [![StyleCI](https://camo.githubusercontent.com/945c824590d907e4983a4b7fd26fd9eab5aecc0ebbdb6a985e1854073226eaab/68747470733a2f2f7374796c6563692e696f2f7265706f732f36363730343935302f736869656c64)](https://styleci.io/repos/66704950) [![Build Status](https://camo.githubusercontent.com/fc58808bb2147d8b36246c09f19f96bcc2e4aa0b3142cf5fe6f695cbca55a5b8/68747470733a2f2f7472617669732d63692e6f72672f6179696d646f6d6e69632f4772617068516c2d4c352e332e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ayimdomnic/GraphQl-L5.3)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#graphql-l53--)

After the Developer Workshop in Nairobi, I have resolved to Move from Rest to GraphQL, This is a package to assit me with the same as I develop may laravel APIs

\#Requirements

1. PHP 5.6 and Above
2. Laravel 5.3

\#Instalation

1. `composer require ayimdomnic/graph-ql-l5.3`
2. add `Ayimdomnic\GraphQl\GraphQlServiceProvider::class,` to `config/app`
3. add `'GraphQl' => 'Ayimdomnic\GraphQl\Helper\Facade\GraphQl',` to the Facades
4. publish `php artisan vendor:publish`

\#Usage

- [Creating a query](#creating-a-query)
- [Creating a mutation](#creating-a-mutation)
- [Adding validation to mutation](#adding-validation-to-mutation)

\#Creating a Query(#creating-a-query)

```
	namespace App\GraphQl\Type;

	use GraphQL\Type\Definition\Type;
	use Ayimdomnic\GraphQl\Helper\Type as GraphQLType;

    class UserType extends GraphQLType {

        protected $attributes = [
			'name' => 'User',
			'description' => 'A user'
		];

		public function fields()
		{
			return [
				'id' => [
					'type' => Type::nonNull(Type::string()),
					'description' => 'The id of the user'
				],
				'email' => [
					'type' => Type::string(),
					'description' => 'The email of user'
				]
			];
		}

		#########If you want to resolve the field yourself, you can declare a method
		###################with the following format resolve[FIELD_NAME]Field()
		protected function resolveEmailField($root, $args)
		{
			return strtolower($root->email);
		}

    }
```

Creating a Mutation
-------------------

[](#creating-a-mutation)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

3592d ago

Major Versions

1.0.0 → v2.0.1-Stable2016-08-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6215925?v=4)[Soon To Zen](/maintainers/ayimdomnic)[@ayimdomnic](https://github.com/ayimdomnic)

---

Top Contributors

[![ayimdomnic](https://avatars.githubusercontent.com/u/6215925?v=4)](https://github.com/ayimdomnic "ayimdomnic (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ayimdomnic-graph-ql-l53/health.svg)

```
[![Health](https://phpackages.com/badges/ayimdomnic-graph-ql-l53/health.svg)](https://phpackages.com/packages/ayimdomnic-graph-ql-l53)
```

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.4M112](/packages/nuwave-lighthouse)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[worksome/graphlint

A static analysis tool for GraphQL

13192.4k](/packages/worksome-graphlint)[rapidez/core

Rapidez Core

1822.4k66](/packages/rapidez-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
