Posts

Showing posts with the label composer-php

composer dump-autoload do nothing

composer dump-autoload do nothing I am trying to execute the command composer dump-autoload on a Laravel project, but it does nothing. It only writes Generating optimized autoload files , then stops. composer dump-autoload Generating optimized autoload files I tried it on an other project, and it worked well (discovered packages, and so on). I also tried it after updating composer ( composer self-update ), after checking that my composer.json is right ( composer validate ). Nothing changed... composer self-update composer validate The command composer update works well on the update part, but does the same when it arrives to the dump-autoload one. composer update Does someone have a solution? Thanks! 1 Answer 1 Check your composer.json , pre-install-cmd and post-autoload-dump was missing. composer.json pre-install-cmd post-autoload-dump Your scripts should look like this scripts { "scr...

Is there a way to create a “Libraries We Use” page from composer?

Is there a way to create a “Libraries We Use” page from composer? I am developing a proprietary php project, which is using several open source packages. Is there a way to create a license page like this https://slack.com/libs/android directly via composer? Or do I have to copy all the licenses by hand? You could iterate through the vendor folder and check the packages composer files. That would at least give you what type of licenses are defined, if any. You can also check if there's any LICENSE file. Regarding the name, the composer files only include the name in the <vendor>/<package> format. So for that, I would say, you can't (unless you extract the package name and convert it to camel case name yourself). – Magnus Eriksson Jun 29 at 8:48 <vendor>/<package> ...

How to install PHP GMP on macOS High Sierra?

How to install PHP GMP on macOS High Sierra? I am trying to install and enable GMP extension for PHP. Mac OS High Sierra 10.13.5 PHP Version: 7.1.16 Composer version: 1.6.5 Homebrew version: 1.6.9 I am getting this error when I run composer install . composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-gmp * is missing from your system. Install or enable PHP's gmp extension. The composer.json has dependency on "ext-gmp": "*" . I have tried following things: composer.json "ext-gmp": "*" brew install homebrew/php/php70-gmp brew install gmp brew install homebrew/homebrew-core/php70-gmp php.ini extension=php_gmp.dll I'm still getting the same error on composer install. Can anyone please help me with this? Did ...