PHP code example of devmakerlab / my-mine
1. Go to this page and download the library: Download devmakerlab/my-mine library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devmakerlab / my-mine example snippets
// 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();