Download the PHP package dlowhorn/php-trello without Composer

On this page you can find all versions of the php package dlowhorn/php-trello. 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 php-trello

php-trello

Home page: https://github.com/dlowhorn/php-trello

This wrapper is a slightly updated version of Matt Zuba's php-trello package, hosted for years on bitbucket, but disappeared after Bitbucket dropped support for Mercurial.

php-trello is a PHP-based wrapper for the Trello API. Its functionality is very similar to the Trello-made client.js library. It also supports OAuth authorization.

This is a basic Trello PHP wrapper that is used very similar to the Trello-made client.js library. The method calls are the same (ie: Trello->post() or Trello->boards->get()). See https://trello.com/docs/gettingstarted/clientjs.html for detailed information.

Some differences - you cannot specify callbacks for success or error. If they're requested I may add them in, but it's not really my style to pass callbacks like that around PHP when I can simply return the data instead.

Trello::authorize here does OAuth authentication, so you must pass your Secret Key to the constructor or set it after instantiation before calling the authorize method. Some parameters are the same as client.js (name, scope, expiration) and there is one extra (redirect_uri) for the OAuth callback.

Go to https://trello.com/1/appKey/generate to get your API and OAuth keys

Example Usage

Basic Usage

Read a public board (Trello)

:::php
    <?php
    $key = 'yourkey';
    $trello = new \Trello\Trello($key);
    var_dump($trello->boards->get('4d5ea62fd76aa1136000000c'));

Pre-existing key/token combo and read your boards

:::php
    <?php
    $key = 'yourkey';
    $token = 'yourjavascripttoken';
    $trello = new \Trello\Trello($key, null, $token);
    var_dump($trello->members->get('my/boards')));

OAuth Usage

Authorize and get your boards

:::php
    <?php
    $key = 'yourkey';
    $secret = 'yoursecret';
    $trello = new \Trello\Trello($key, $secret);
    $trello->authorize(array(
        'expiration' => '1hour',
        'scope' => array(
            'read' => true,
        ),
        'name' => 'My Test App'
    ));
    var_dump($trello->members->get('my/boards'));

Pre-existing OAuth authorization and get your boards

:::php
    <?php
    $key = 'yourkey';
    $secret = 'yoursecret';
    $oauth_token = 'youroauthtoken';
    $oauth_secret = 'youroauthsecret';
    $trello = new \Trello\Trello($key, $secret, $oauth_token, $oauth_secret);
    var_dump($trello->members->get('my/boards'));

All versions of php-trello with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-curl Version *
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 dlowhorn/php-trello contains the following files

Loading the files please wait ....