A simple library to demonstrate how to use PThreads in conjunction with the Composer AutoLoader.
From composer, composer require iainconnor/composer-pthreads
.
Just use or extend the provided AutoloadWorker
Class in place of your normal \Worker
.
See ComposerWorkerTest.php for a full example.