2017 © Pedro Peláez
 

library laravel-trello

A Laravel wrapper and facade package for the Trello API

image

gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

  • Wednesday, March 15, 2017
  • by gregoriohc
  • Repository
  • 1 Watchers
  • 20 Stars
  • 14,651 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

Laravel 5 Trello API wrapper

Scrutinizer Code Quality, (*1)

A simple Laravel 5 package that wraps Trello API., (*2)

Requirements

  • PHP 5.4 or greater

Installation

You can install the package using the Composer package manager running this command in your project root:, (*3)

composer require gregoriohc/laravel-trello

Laravel

The package includes a service providers and a facade for easy integration and a nice syntax for Laravel., (*4)

Firstly, add the Gregoriohc\LaravelTrello\TrelloServiceProvider provider to the providers array in config/app.php, (*5)

'providers' => [
  ...
  Gregoriohc\LaravelTrello\TrelloServiceProvider::class,
],

and then add the facade to your aliases array, (*6)

'aliases' => [
  ...
  'Trello' => Gregoriohc\LaravelTrello\Facades\Wrapper::class,
],

Configuration

Publish the configuration file with:, (*7)

php artisan vendor:publish --provider="Gregoriohc\LaravelTrello\TrelloServiceProvider"

Head into the file and configure the keys and defaults you'd like the package to use., (*8)

Usage

Creating a basic card

$card = Trello::manager()->getCard();
$card
    ->setBoardId(Trello::getDefaultBoardId())
    ->setListId(Trello::getDefaultListId())
    ->setName('Example card')
    ->setDescription('Description of the card')
    ->save();

Creating a more complex card

// Create the card
$card = Trello::manager()->getCard();
$card
    ->setBoardId(Trello::getDefaultBoardId())
    ->setListId(Trello::getDefaultListId())
    ->setName('Example card')
    ->setDescription('Description of the card')
    ->save();

// Add a checklist with one item
$checklist = Trello::manager()->getChecklist();
$checklist
    ->setCard($card)
    ->setName('Example list')
    ->save();
Trello::checklist()->items()->create($checklist->getId(), 'Example checklist item');

// Attach an image using a url
Trello::card()->attachments()->create($card->getId(), ['url' => 'http://lorempixel.com/400/200/']);

More examples

For more examples of usage, please see the original PHP Trello API package documentation: https://github.com/cdaguerre/php-trello-api, (*9)

Contributing

If you're having problems, spot a bug, or have a feature suggestion, please log and issue on Github. If you'd like to have a crack yourself, fork the package and make a pull request., (*10)

The Versions

15/03 2017

dev-master

9999999-dev https://github.com/gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api package facade trello

15/03 2017

0.3

0.3.0.0 https://github.com/gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api package facade trello

04/02 2016

0.2

0.2.0.0 https://github.com/gregoriohc/laravel-trello

A Laravel wrapper and facade package for the Trello API

  Sources   Download

MIT

The Requires

 

The Development Requires