added composer.json
php port of js issue #6