acaronlex / trello-php
Simplify Trello API integration in PHP projects with this lightweight package
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- guzzlehttp/guzzle: ^7.8
README
Trello PHP: Simplify Trello API Integration
Easily interact with Trello's powerful features in your PHP projects using this lightweight and user-friendly library.
Disclaimer
⚠️ Work in Progress ⚠️
This package is currently under active development and may undergo significant changes before reaching a stable release. While it's functional for testing and experimentation, it may not be suitable for production use at this time. We appreciate your interest and welcome any feedback or contributions to help improve this package.
Installation
Using Composer:
- Ensure you have Composer installed
- Run the following command in your project's terminal:
composer require acaronlex/trello-php
- Publish the config:
php artisan vendor:publish --provider="Acaronlex\TrelloPhp\TrelloServiceProvider"
- Add your trello config in .env file:
TRELLO_API_KEY=XXXXX
TRELLO_API_TOKEN=YYYYY
Usage
Once installed, you can start using the Trello
class to interact with the Trello API. Here's a basic example:
PHP
<?php
use Acaronlex\TrelloPhp\Services\BoardService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class TrelloTestController extends Controller
{
protected $boardService;
public function __construct(BoardService $boardService)
{
$this->boardService = $boardService;
}
public function index(){
$boards = $this->boardService->getAllBoards();
return $boards;
}
}
Features
- Board Management: (to be added in future versions)
- List Management: (to be added in future versions)
- Card Management: (to be added in future versions)
- Member Management: (to be added in future versions)
- Label Management: (to be added in future versions)
- Attachment Management: (to be added in future versions)
Contributing
We welcome contributions from the community! Feel free to submit pull requests for bug fixes, new features, or improved documentation.
License
This library is licensed under the MIT License (https://opensource.org/license/mit).