Posts

Showing posts with the label composer-php

Local composer package development - require path over git

Image
Clash Royale CLAN TAG #URR8PPP Local composer package development - require path over git So I'm creating a composer package, I'm trying to establish the best workflow for me to be able to quickly switch between my local path/symlink repository definition and the git definition. This is how my composer looks: "repositories": [ { "type": "composer", "url": "https://wpackagist.org" }, { "url": "git@bitbucket.org:hubmdp/package.git", "type": "git" }, { "type": "path", "url": "../package", "options": { "symlink": true } } ], I then just require the package. What I want to be able to do is basically tell composer to install the path version so I can work locally, but have it by default require the git version. Hopefully this makes sense. Thanks in advance. ...

Composer: Command Not Found on Mac

Image
Clash Royale CLAN TAG #URR8PPP Composer: Command Not Found on Mac I have installed Composer as per the instructions command not found After installing I get the prompt that Composer is successfully installed but when I go to check the version it gives me error "Composer: Command Not Found" By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Composer Require 'package' throws OpenSSL error

Image
Clash Royale CLAN TAG #URR8PPP Composer Require 'package' throws OpenSSL error This problem seems to be common, and i've been through a lot of SO posts related to it and nothing works, and i'm going crazy. Setup : What Works : What does not work : Installing a package I cannot reach https://packagist.org/ with firefox (unsecure connection) The error i get with composer require : [ComposerDownloaderTransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed Failed to enable crypto failed to open stream: operation failed php -r "var_dump(openssl_get_cert_locations());" Returns this : array(8) { ["default_cert_file"]=> string(25) "c:/usr/local/ssl/cert.pem" ["default_cert_file_env"]=> string(13) "SSL_CERT_FILE"...