composer-php

Laravel PackageManifest.php line 131: Undefined index: name

廉价感情. 提交于 2021-02-07 11:45:32
问题 I updated the composer with this command: composer self-update It was updated to version 2.0.4. Then when I tried to launch my Laravel project using: php artisan serve I got this error: In PackageManifest.php line 131: Undefined index: name I tried getting back to the old version of the composer with this: composer self-update --rollback The composer was downgraded to version 1.9.3, but it didn't help with the error. Then I used this command to update the composer again: composer self-update

How do i run 'composer' command via SSH?

☆樱花仙子☆ 提交于 2021-02-07 10:53:47
问题 I want to reload my project's custom classes in Laravel so they become accessible, but on a shared hosting enviroment. To my understanding, so far, locally, I've been achieving the desired by using this command: composer dump-autoload however, running that via putty's SSH gives me: -bash: composer: command not found Any idea? 回答1: You have to install composer on the remote machine that your are ssh'ing to. You can find installation instructions on the composer homepage. 回答2: please try: php

How do i run 'composer' command via SSH?

社会主义新天地 提交于 2021-02-07 10:53:43
问题 I want to reload my project's custom classes in Laravel so they become accessible, but on a shared hosting enviroment. To my understanding, so far, locally, I've been achieving the desired by using this command: composer dump-autoload however, running that via putty's SSH gives me: -bash: composer: command not found Any idea? 回答1: You have to install composer on the remote machine that your are ssh'ing to. You can find installation instructions on the composer homepage. 回答2: please try: php

Composer proc_open(): fork failed - Cannot allocate memory

…衆ロ難τιáo~ 提交于 2021-02-07 05:56:04
问题 I have this same error as others when running php ~/composer.phar update : The following exception is caused by a lack of memory and not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///home/tea/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:974 Stack trace: 0

Composer not working on windows, gives [Composer\Exception\NoSslException] error

给你一囗甜甜゛ 提交于 2021-02-07 02:53:40
问题 I'm trying to install laravel on windows 10. I installed composer to install laravel but it gives me below error. [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true. Command doesn't matteri it gives above error with all commands... I checked out this question and used solutions but it didin't

(Docker) How to install dependencies, using separate Composer container, in WordPress container?

陌路散爱 提交于 2021-02-06 14:02:27
问题 Dockerfile FROM wordpress ENV REFRESHED_AT 2015-08-12 ADD \ composer.json /var/www/html ADD \ composer.lock /var/www/html # install the PHP extensions RUN \ apt-get -qq update && \ apt-get -y upgrade && \ apt-get install -y vim wget && \ rm -rf /var/lib/apt/lists/* # Symlink User's "wp-content" folder into the newly installed Wordpress RUN \ rm -rf /usr/src/wordpress/wp-content/plugins/* && \ rm -rf /usr/src/wordpress/wp-content/themes/* && \ cp -fr /usr/src/wordpress/* /var/www/html/ && \

(Docker) How to install dependencies, using separate Composer container, in WordPress container?

我与影子孤独终老i 提交于 2021-02-06 14:01:10
问题 Dockerfile FROM wordpress ENV REFRESHED_AT 2015-08-12 ADD \ composer.json /var/www/html ADD \ composer.lock /var/www/html # install the PHP extensions RUN \ apt-get -qq update && \ apt-get -y upgrade && \ apt-get install -y vim wget && \ rm -rf /var/lib/apt/lists/* # Symlink User's "wp-content" folder into the newly installed Wordpress RUN \ rm -rf /usr/src/wordpress/wp-content/plugins/* && \ rm -rf /usr/src/wordpress/wp-content/themes/* && \ cp -fr /usr/src/wordpress/* /var/www/html/ && \

(Docker) How to install dependencies, using separate Composer container, in WordPress container?

这一生的挚爱 提交于 2021-02-06 13:57:13
问题 Dockerfile FROM wordpress ENV REFRESHED_AT 2015-08-12 ADD \ composer.json /var/www/html ADD \ composer.lock /var/www/html # install the PHP extensions RUN \ apt-get -qq update && \ apt-get -y upgrade && \ apt-get install -y vim wget && \ rm -rf /var/lib/apt/lists/* # Symlink User's "wp-content" folder into the newly installed Wordpress RUN \ rm -rf /usr/src/wordpress/wp-content/plugins/* && \ rm -rf /usr/src/wordpress/wp-content/themes/* && \ cp -fr /usr/src/wordpress/* /var/www/html/ && \

Newest symfony installer vs composer

只愿长相守 提交于 2021-02-06 08:50:51
问题 I'd like to know whats the difference when creating new symfony project with new symfony installer that has appeared last time and old-way composer. I've installed latest version of symfony (2.6.1) with both, and result was different, for example when I install symfony with composer, i get .gitignore file. When I install with new symfony installer script, gitignore is missing. Here is amount of catalogs and files in fresh project: symfony installer: 1498 directories, 7136 files symfony

Composer - No Matching Package Found

ⅰ亾dé卋堺 提交于 2021-02-06 02:28:12
问题 I have a PHP framework I've built, and I'm trying to separate everything into different repos and get it set up in composer to make my life easier. Basically, I have 3 repos in question: one is for a collection class that serves as a base class for collection data types ("liftkit/collection"), another is a wrapper for input variables ("liftkit/input", which depends on the collection repo), and a third that is for the core ("liftkit/core", which depends on the input wrapper. When I run