Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.11 KB

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();