Skip to content

Tag: composer-php

Can’t move composer

When I install composer on my mac with: curl -sS https://getcomposer.org/installer | php And then try to move it like this: sudo mv php composer.phar /usr/local/bin/composer it’s telling me: …

ServiceProvider not found Laravel 5.0

I’m trying to create a custom package for Laravel 5.0 based on this tutorials The folder structure and service providers are exactly same, but some how the Serviceprovider is not updating autoload_namespace.php. I already added my service provider in app/config.php In my root composer.json I have follow…

Error: Class ‘Stripe’ not found

I’m trying to use the Stripe php api in a Bolt extension but it’s having trouble finding the class. I added the Stripe library to composer.json: And ran composer install. myextension/vendor/composer/autoload_classmap.php now shows the classes loaded: And now I’m trying to use it in the exten…

How to test if composer.lock is up to date?

During development (multiple people in the team) sometimes composer install returns: Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Is there a way to check for this very quickly (in milliseconds, without m…

Can composer.phar be deployed with the code?

I’m using Composer for a small project. I’ve pushed composer.json and composer.lock to Git, and put the vendor/ folder into .gitignore, so I can install the dependencies at the server on deploy time. Can I push composer.phar to the Git repo or should I install a new copy for the server? Not sure i…