PHPackages                             andrew1601/laravel-arbor - 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. andrew1601/laravel-arbor

ActiveLibrary

andrew1601/laravel-arbor
========================

A minimal package to quickly use the Arbor Education API in a Laravel project

1.0.0(1y ago)019MITPHP

Since May 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andrew1601/laravel-arbor)[ Packagist](https://packagist.org/packages/andrew1601/laravel-arbor)[ RSS](/packages/andrew1601-laravel-arbor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Arbor for Laravel
=================

[](#arbor-for-laravel)

A minimal package to enable quick integration of the Arbor Education API in a Laravel application. Currently it only supports the GraphQL API.

Installation
------------

[](#installation)

Install laravel-arbor with composer

```
  composer require andrew1601/laravel-arbor
```

Add your [Arbor application](https://developers-portal.arbor.sc)'s credentials to your `.env` file

```
ARBOR_URL=https://api-sandbox2.uk.arbor.sc
ARBOR_APP_USERNAME=
ARBOR_APP_PASSWORD=

```

Usage/Examples
--------------

[](#usageexamples)

You can use the ArborGraphQL facade to query with GraphQL. The facade is automatically registered for you when you install the package.

This facade returns the instance of `Softonic\GraphQL\Client` that was registered into your Laravel application and is pre-configured to query the GraphQL endpoint of the Arbor site entered in the `ARBOR_URL` variable of your `.env` file.

```
$query =
