2017 © Pedro Peláez
 

library laravel-wonde

This is a bridge package for the Wonde API Client.

image

a-lawrence/laravel-wonde

This is a bridge package for the Wonde API Client.

  • Wednesday, October 11, 2017
  • by A-Lawrence
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel-Wonde Bridge for WondeLTD API

This is a simple bridge for the Wonde LTD API, using Graham Campbell's Laravel Manager package as a framework., (*1)

Installation

Add this package to your composer.json file:, (*2)

composer require a-lawrence/laravel-wonde

Depending on your version of Laravel, it may be necessary to add your Service Provider to your config/app.php file:, (*3)


... ALawrence\LaravelWonde\WondeServiceProvider::class, ...

Along with the Alias:, (*4)


... 'Wonde' => ALawrence\LaravelWonde\Facades\Wonde::class, ...

Config

Within your .env file (or environment variables) you can define the following two elements:, (*5)

WONDE_TOKEN=Your-Access-Token
WONDE_SCHOOL=Specific-School

You will only need to set WONDE_SCHOOL if your application is a single school application., (*6)

If you'd like more control over the configuration, you could always publish the config file for this package and modify as necessary:, (*7)


php artisan vendor:publish --provider="ALawrence\LaravelWonde\WondeServiceProvider"

Usage

Basic usage can be carried out by utilising dependency injection within your controller:, (*8)


class DemoController extends Controller { protected $wonde; public function __construct(WondeManager $wonde) { $this->wonde = $wonde; } public function display() { foreach ($this->wonde->schools->all() as $school) { // Display school name echo $school->name . PHP_EOL; } } }

If you'd prefer to not use dependency injection, then that's fine too:, (*9)


public function display() { foreach (Wonde::connection("main")->schools->all() as $school) { // Display school name echo $school->name . PHP_EOL; } }

For all other usage, non-specific to this bridge, view the Wonde API Client documentation: https://github.com/wondeltd/php-client, (*10)

The Versions

11/10 2017

dev-master

9999999-dev

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence

11/10 2017

0.4

0.4.0.0

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence

11/10 2017

0.3

0.3.0.0

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence

11/10 2017

0.2

0.2.0.0

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence

11/10 2017

0.1

0.1.0.0

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence

11/10 2017

dev-develop

dev-develop

This is a bridge package for the Wonde API Client.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthony Lawrence

laravel framework wonde wonde ltd wondeltd laravel-wonde wonde laravel anthony lawrence alawrence anthonylawrence