PHP code example of miguelsenne / task-manager

1. Go to this page and download the library: Download miguelsenne/task-manager 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/ */

    

miguelsenne / task-manager example snippets


use  \miguelsenne\TaskManager\Models\Project;  

$Project = new Project();

 
$result = $Project->store('New Project');

print_r($result);

 
$project = new Project('5d8f83f6d1f2c9.59688033');

$result = $project->delete();

print_r($result);

 
$project = new Project('5d8f83f6d1f2c9.59688033');

$result = $project->find();

print_r($result);

 
$project = new Project;

$result = $project->reset();

print_r($result);

 
use miguelsenne\TaskManager\Models\Task;

$task = new Task('5d8f83f6d1f2c9.59688033');

 
$result = $task->store('New Task');

print_r($result);

 
$result = $task->changeProgress();

print_r($result);