From b514cb0b835a878d2a277e9247d1ba436fe1dce7 Mon Sep 17 00:00:00 2001 From: bpteam Date: Thu, 2 Jul 2015 17:28:32 +0300 Subject: [PATCH 1/2] add composer.json Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. --- composer.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..44046aa --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "name": "motanelu/php-thread", + "description": "Simple implementation of threading in PHP using pnctl", + "minimum-stability": "stable", + "license": "MIT", + "authors": [ + { + "name": "Tudor Barbu", + "email": "miau@motane.lu" + } + ] +} \ No newline at end of file From f9d56b4bfc7b08b311006215cfdfb85d13412a3a Mon Sep 17 00:00:00 2001 From: bpteam Date: Thu, 2 Jul 2015 17:30:03 +0300 Subject: [PATCH 2/2] add autoload --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 44046aa..f117066 100644 --- a/composer.json +++ b/composer.json @@ -8,5 +8,8 @@ "name": "Tudor Barbu", "email": "miau@motane.lu" } - ] + ], + "autoload": { + "classmap": ["Thread.php", "ThreadQueue.php"] + } } \ No newline at end of file