vcs
? I have 10 dependencies and even with https://github.com/hirak/prestissimo it is super slow
composer require psr/log-implementation
is not working?bash-5.0# composer require psr/log-implementation
[InvalidArgumentException]
Could not find package psr/log-implementation.
Did you mean one of these?
psr/log-implementation
xxnoobmanxx/psrlogger
Hey all. I keep getting "class not found" errors when trying to autoload my classes. In my composer.json file I have:
"autoload": {
"psr-4": {
"Foo\\Bar\\" : "src/"
}
}
And other than composer.json, I have src/Foobar.php which contains:
<?php
namespace Foo\Bar;
class Foobar {}
require_once('vendor/autoload.php');
new \Foo\Bar\Foobar;
composer dump autoload
after modifying the composer.json
to include that psr-4
definition?
hello guys .I want to install laravel but there is some problem in packagist
/home/eagle/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/formdata-node/lib/FormData.js:239
async *__getField() {
^
SyntaxError: Unexpected token *
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/eagle/.nvm/versions/node/v8.9.4/lib/node_modules/composer-rest-server/node_modules/@tim-lai/isomorphic-form-data/lib/index.js:2:18)
i have an application with an "api" module. i want to separate the api out into its own repo.
however, I have a problem with the relationship with the app package:
how can composer organize/express this?
@adrian-enspired I'm not sure what you mean, exactly, by "how can composer organize/express this?"
If I understand the essence of your question, though, you're asking how to define the relationship between the packages.
On its face, it seems as simple as making the app
package a dependency of the api
package.
In the api
package's composer.json
:
"require": {
"app": "dev-master",
}
composer install app
, not composer install api
. api cannot be the parent/installable package, as "app" must exist on its own. there are other frontends that use it.