devmakerlab / my-mine
v1.0.1
2022-07-23 13:30 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- devmakerlab/entities: ^3.1
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- mockery/mockery: ^1.4
- nesbot/carbon: ^2.59.1
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.3
This package is auto-updated.
Last update: 2024-10-23 19:00:31 UTC
README
DevMakerLab/My-Mine
Want to track and analyze your Redmine tickets/projects,
Installation
⚠️ Requires >= PHP 7.4 ⚠️
composer require devmakerlab/my-mine
Examples
<?php // This retrieve all tickets created since 2020 $monthOldTickets = $ticketService->inRange(Carbon::parse('2020-01-01 00:00:00'), Carbon::now())->get(); // This retrieve all tickets containing the word 'urgent' in the subject. $urgentTickets = $ticketService->addFilter('subject', '~urgent')->get(); // This retrieve all tickets created by a specific author id. $johnTickets = $ticketService->addFilter('author_id', 1)->get(); //And you can chain! $johnUrgentTicketsCreatedSinceTwentyTwenty = $ticketService() ->inRange(Carbon::parse('2020-01-01 00:00:00'), Carbon::now()) ->addFilter('subject', '~urgent') ->addFilter('author_id', 1) ->get();