gponty / symfony-monday-api-bundle
Service to use api Monday.com in Symfony
Installs: 715
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- symfony/config: ^6.4|^7.0
- symfony/dependency-injection: ^6.4|^7.0
- symfony/http-kernel: ^6.4|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.17
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-symfony: ^1.3
README
This is a Symfony 6/7 Bundle helps you to use monday API v2 : https://developer.monday.com/apps/docs/mondayapi. It use version 2023-10.
Installation
1 Add to composer.json to the require
key
composer require gponty/symfony-monday-api-bundle
2 Add to local .env file
MONDAY_API_KEY=your_token
3 Add to framework config file config/packages/framework.yml
monday:
api_key: '%env(MONDAY_API_KEY)%'
Usage
Inject the service in your controller :
public function __construct(readonly MondayApiService $mondayApiService) { }
Use the service :
$query = '{ boards(ids: 123456789) { id name groups { id title items_page(limit: 100, page:1) { cursor items{ id name } } } }'; $response = $this->mondayApiService->request($query);
License
This bundle is under the MIT license. See the complete license in the bundle.