PHP code example of epicsweb / php-tarefasapp
1. Go to this page and download the library: Download epicsweb/php-tarefasapp 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/ */
epicsweb / php-tarefasapp example snippets
$data = [
'api_token' => (string) 'a1b2c2', // req | length:32
'name' => (string) 'Task Name', // req | maxlength:200
'tasklists_id' => (int) 1, // def: default projetct of company
'description' => (string) 'Text or Html', // req
'expiration' => (string) '2019-01-31', // def: NULL | format: Y-m-d
'time_estimated' => (string) '02:00', // req | format: H:i (00:00)
'priority' => (int) 1, // def: 1 | min:1 | max:3
'level_cool' => (int) 1, // def: 1 | min:1 | max:5
'level_pain' => (boolean) 1, // def: 0 | min:0 | max:0
'profiles_email' => (string) '[email protected] ', // req | formar: email
'for_profiles_email' => (string) '[email protected] ', // def: profiles_email value
];
$task = new Epicsweb\PhpTarefasApp;
$task->tasks_add( $data, 'put' ); //ALLOW "put" && "get"
req => ''have a default value, and is not n_encode, and other in the array key or values
bash
composer