Download the PHP package stevenmaguire/trello-php without Composer

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

Trello PHP

Latest Version Total Downloads

A PHP client for consuming the Trello API.

Install

Via Composer

Usage

This guide will help you navigate accessing the api on their behalf.

Full client documentation is available in the API Guide.

Make sure you have secured your Trello API keys before going further. There is a handy guide for that.

This project includes a basic example. You can run this example to test your application details. Open the example file and include your key and secret, run php -S localhost:8000 -t example, visit http://localhost:8000 in your favorite browser.

Configure the client

The Trello client needs a few configuration settings to operate successfully.

Setting Description
key Required, the application key associated with your application.
token Required when using the package to make authenticated API requests on behalf of a user.
domain Optional, default is https://trello.com.
version Optional, default is 1.
secret Required when using package to help get access tokens, the application secret associated with your application.
name Optional. This will appear on the user facing approval screen when using package to help get access tokens.
callbackUrl Required when using package to help get access tokens.
expiration Required when using package to help get access tokens.
scope Required when using package to help get access tokens.
proxy Optional setting to declare a host to use for proxy; Read more on the Guzzle Docs.

Set configuration when creating client

Set multiple configuration after creating client

Set single configuration after creating client

Authenticate your users and store access token

The Trello client is capable of assisting you in walking your users through the OAuth authorization process and providing your application with access token credentials.

This package utilizes The League's OAuth1 Trello Client to provide this assistance.

Create a basic client

Add your application's required OAuth settings

Get authorization url, then redirect your user

Exchange authorization token and verifier for access token

After the user approves or denies access to your application, they will be redirected to the callback url you provided. If the user approves access, the url will include oauth_token and oauth_verifier in query string parameters.

If successful, $credentials with be an instance of TokenCredentials. You can store the identifier within and use to authenticate requests on behalf of that user.

Use access token to make requests

Access the API with access token

Get inventory of all entities that belong to your user

Most of the methods available in the API Guide require entity ids to conduct business.

Handling exceptions

When handling exceptions that result during requests to Trello using the client, a Stevenmaguire\Services\Trello\Exceptions\Exception will be thrown. This exception will include information from the underlying Http request/response issues, including the response body from Trello.

Testing

Contributing

Please see PROGRESS.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of trello-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
guzzlehttp/guzzle Version ^7.0
league/oauth1-client Version ^1.5
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 stevenmaguire/trello-php contains the following files

Loading the files please wait ....