Maybe a true stupid question but how can I really test a script with his dependencies before pushing the package to packagist?
I have tried with in myroot/composer.json :
"autoload": {
"psr-0": {
"myname/core": "vendor/myname"
}
}
in my vendor/myname/core/core.php I have something like this :
namespace myname/core;
die('it works');
in my vendor/myname/core/composer.json I have something like this :
{
"name": "myname/core",
"description": "xxx",
"license": "MIT",
"authors": [
{
"name": "my name",
"email": "",
"homepage": ""
}
],
"require": {
"php": ">=5.3.0",
"monolog/monolog": "1.0.*"
}
}
but it doesn't seem to work, when I try to run:
$ php composer.phar install
=> monolog/monolog is not installed =>
can somebody help me to understand?