Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install (problem with composer on PHP 7.2) #20
Cannot install (problem with composer on PHP 7.2) #20
Comments
Hi, I tried running your suggested composer commands, but when I open vendor/autoload.php, I get this:
[25-Mar-2019 18:10:12 UTC] PHP Fatal error: Uncaught Http\Discovery\Exception\DiscoveryFailedException: Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors - Puli Factory is not available - No valid candidate found using strategy "Http\Discovery\Strategy\CommonClassesStrategy". We tested the following candidates: . - No valid candidate found using strategy "Http\Discovery\Strategy\CommonPsr17ClassesStrategy". We tested the following candidates: Nyholm\Psr7\Factory\Psr17Factory, Zend\Diactoros\ResponseFactory, Http\Factory\Diactoros\ResponseFactory, Http\Factory\Guzzle\ResponseFactory, Http\Factory\Slim\ResponseFactory. in /home/mgtckfyeswfr/apis/slack/vendor/php-http/discovery/src/Exception/DiscoveryFailedException.php:41 Stack trace: #0 /home/mgtckfyeswfr/apis/slack/vendor/php-http/discovery/src/ClassDiscovery.php(79): Http\Discovery\Exception\DiscoveryFailedException::create(Array) #1 /home/mgtckfyeswfr/apis/slack/vendor/php-http/discovery/src/Psr17Factory in /home/mgtckfyeswfr/apis/slack/vendor/php-http/discovery/src/ClassDiscovery.php on line 210
I am running PHP 7.2. I looked at this link: http://docs.php-http.org/en/latest/discovery.html#common-errors and tried installing all the packages it mentions, but when I try the Puli install:
composer require puli/composer-plugin
[InvalidArgumentException] Could not find package puli/composer-plugin. Did you mean this? puli/composer-plugin
it looks like a full stop is somehow being added to the end of the word plugin?
The text was updated successfully, but these errors were encountered:
Hi — thanks for such a quick response! Yes I ran that command and it all seemed fine. it suggested installing a few more at the end, but no errors. here it is:
Using version ^2.0 for php-http/curl-client Using version ^1.5 for guzzlehttp/psr7 ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 13 installs, 0 updates, 0 removals - Installing symfony/options-resolver (v4.2.4): Loading from cache - Installing psr/http-message (1.0.1): Loading from cache - Installing psr/http-factory (1.0.0): Loading from cache - Installing psr/http-client (1.0.0): Loading from cache - Installing clue/stream-filter (v1.4.0): Loading from cache - Installing php-http/message-factory (v1.0.2): Loading from cache - Installing php-http/message (1.7.2): Loading from cache - Installing php-http/promise (v1.0.0): Loading from cache - Installing php-http/httplug (v2.0.0): Loading from cache - Installing php-http/discovery (1.6.1): Loading from cache - Installing php-http/curl-client (2.0.0): Loading from cache - Installing ralouphie/getallheaders (2.0.5): Loading from cache - Installing guzzlehttp/psr7 (1.5.2): Loading from cache php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories) php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation) php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
and then the jolicode also seems fine:
Using version ^1.1 for jolicode/slack-php-api ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 17 installs, 0 updates, 0 removals - Installing php-http/client-common (2.0.0): Loading from cache - Installing php-http/multipart-stream-builder (1.0.0): Loading from cache - Installing symfony/polyfill-ctype (v1.11.0): Loading from cache - Installing symfony/yaml (v4.2.4): Loading from cache - Installing symfony/serializer (v4.2.4): Loading from cache - Installing php-jsonpointer/php-jsonpointer (v3.0.2): Loading from cache - Installing league/uri-parser (1.4.1): Loading from cache - Installing league/uri-interfaces (1.1.1): Loading from cache - Installing league/uri-schemes (1.2.1): Loading from cache - Installing psr/simple-cache (1.0.1): Loading from cache - Installing league/uri-hostname-parser (1.1.1): Loading from cache - Installing league/uri-components (1.8.2): Loading from cache - Installing league/uri-manipulations (1.5.0): Loading from cache - Installing jane-php/json-schema-runtime (v4.2.0): Loading from cache - Installing jane-php/open-api-runtime (v4.2.0): Loading from cache - Installing jolicode/slack-php-api (1.1.3): Loading from cache php-http/client-common suggests installing php-http/logger-plugin (PSR-3 Logger plugin) php-http/client-common suggests installing php-http/cache-plugin (PSR-6 Cache plugin) php-http/client-common suggests installing php-http/stopwatch-plugin (Symfony Stopwatch plugin) symfony/yaml suggests installing symfony/console (For validating YAML files using the lint command) symfony/serializer suggests installing psr/cache-implementation (For using the metadata cache.) symfony/serializer suggests installing symfony/property-info (To deserialize relations.) symfony/serializer suggests installing symfony/config (For using the XML mapping loader.) symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.) symfony/serializer suggests installing symfony/http-foundation (To use the DataUriNormalizer.) symfony/serializer suggests installing doctrine/annotations (For using the annotation mapping. You will also need doctrine/cache.) symfony/serializer suggests installing doctrine/cache (For using the default cached annotation reader and metadata cache.) league/uri-hostname-parser suggests installing psr/simple-cache-implementation (To enable using other cache providers) Writing lock file Generating autoload files