devmakerlab/my-mine

v1.0.1 2022-07-23 13:30 UTC

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