| Recommend this page to a friend! | 
|  Download | 
| Info |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
|     70% | Total: 1,004 | All time:  3,638 This week: 36  | ||||
| Version | License | PHP version | Categories | |||
| slobel-async-task 1.0.6 | BSD License | 5.3.3 | PHP 5, Unix, Language | 
| Description | Author | |
| This class can Execute asynchronous tasks in the background. | 
Console app to call mvc controller action to real time process
Console app to call mvc controller action to real time process 
AsyncTask enables proper and easy use of the thread. This class allows to perform background operations and publish results on the thread without having to manipulate threads and/or handlers. More information.
1) Install composer
2) Follow in the project folder:
composer require dmamontov/asynctask ~1.0.5
In config composer.json your project will be added to the library dmamontov/asynctask, who settled in the folder vendor/. In the absence of a config file or folder with vendors they will be created.
If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project:
require 'path/to/vendor/autoload.php';
class TestTask extends AsyncTask
{
    protected function onPreExecute()
    {
    }
    protected function doInBackground($parameters)
    {
        return $parameters;
    }
    protected function onPostExecute($result)
    {
        echo $result;
    }
}
$task = new TestTask();
$task->execute('test');
|  Files (8) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (1 file) | ||||
|  tests (3 files) | ||||
|    example.php | Example | Example script | ||
|    LICENSE | Lic. | License text | ||
|    phpunit.xml.dist | Data | Auxiliary data | ||
|    README.md | Doc. | Auxiliary data | ||
|  Files (8) | / | tests | 
| File | Role | Description | 
|---|---|---|
|    AsyncTaskInstance.php | Test | Unit test script | 
|    AsyncTaskTest.php | Test | Unit test script | 
|    bootstrap.php | Test | Unit test script | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| User Ratings | User Comments (2) | |||||||||||||||||||||||||||||||||||||
| 
 | 
 | |||||||||||||||||||||||||||||||||||||
| Applications that use this package | 
| AsyncTask enables proper and easy use of the thread. | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.