Skip to content
Package to manager task using memory as a database
PHP Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src
tests
.editorconfig
.gitignore
.travis.yml
composer.json
composer.lock
phpcs.xml
phpunit.xml
readme.md
startconsole.sh

readme.md

Task manager

This is a package to manage tasks and projects.

We stored the data in memory as a database.

Requires PHP 7.2

Build Status Scrutinizer Code Quality Packagist

Installation

You can install task manager using Composer:

composer require miguelsenne/task-manager

Getting started

Start by use-ing the class and creating an instance with id project if you need access an project

use  \miguelsenne\TaskManager\Models\Project;  

$Project = new Project();

Then, register an project

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

print_r($result);

Remove an project using the delete method:

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

$result = $project->delete();

print_r($result);

Find an project using the find method:

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

$result = $project->find();

print_r($result);

Clear all projects using the reset method:

$project = new Project;

$result = $project->reset();

print_r($result);

Tasks

Start by use-ing the class and creating an instance with an project id

use miguelsenne\TaskManager\Models\Task;

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

Then, register an task

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

print_r($result);

Change progress of the task. The task, when created, starts with to do progress

$result = $task->changeProgress();

print_r($result);
You can’t perform that action at this time.