composer-php

Error: You made a reference to a non-existent script @php artisan package:discover

£可爱£侵袭症+ 提交于 2020-12-30 18:57:45
问题 I am getting error at running composer dump-autoload at laravel project composer dump-autoload Generating autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump You made a reference to a non-existent script @php artisan package:discover Then executing php artisan package:discover returns Discovered Package: barryvdh/laravel-ide-helper Discovered Package: cartalyst/sentinel Discovered Package: laravelcollective/html Discovered Package: laracasts/generators Package manifest

Error: You made a reference to a non-existent script @php artisan package:discover

*爱你&永不变心* 提交于 2020-12-30 18:53:42
问题 I am getting error at running composer dump-autoload at laravel project composer dump-autoload Generating autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump You made a reference to a non-existent script @php artisan package:discover Then executing php artisan package:discover returns Discovered Package: barryvdh/laravel-ide-helper Discovered Package: cartalyst/sentinel Discovered Package: laravelcollective/html Discovered Package: laracasts/generators Package manifest

How to install/use Composer without SSH

大城市里の小女人 提交于 2020-12-30 02:51:17
问题 guys I have a shared hosting and I can't use SSH or call shells with php ( shell_exec ),for security reasons, I can't upgrade my server for money problems...But i need to install Composer , and work with an SDK for finish my project?Is there any way to install/use composer without SSH? I have read about install Composer offline, and then upload the contents on the server, but i don't think that this work... Thanks for read! Hope that you all'll have a nice day! 回答1: As You Said You Want to

Exclude a package from updating in composer

风流意气都作罢 提交于 2020-12-29 02:57:46
问题 Whenever I try to add a new package using composer like "composer require packagename/package" or use "composer.phar update" , I am getting all the installed packages updated. Is there any option in composer to exclude some package that I don't need to get updated? 回答1: If you feel the need to exclude some of your packages from being updated, I'd consider this the beginning of getting into a dependency mess. You should clean up your dependencies now before it gets worse. From my experience,

ErrorException chdir(): No such file or directory (errno 2) when trying to create a laravel project

耗尽温柔 提交于 2020-12-27 07:19:14
问题 When I try to create a new Laravel project I get this error: c:\xampp\htdocs>composer create-project --prefer-dist laravel/laravel blog Creating a "laravel/laravel" project at "./blog" Installing laravel/laravel (v8.4.0) - Installing laravel/laravel (v8.4.0): Extracting archive Created project in C:\xampp\htdocs\blog [ErrorException] chdir(): No such file or directory (errno 2) I'm using XAMPP by the way. 回答1: Please try this: composer self-update 回答2: In window When you install composer,

Composer : how to add a dependency without network connection?

狂风中的少年 提交于 2020-12-25 01:12:44
问题 My profesionnal network block internet access. Some month ago I download the Silex framework from an archive (which contains composer.json file) and the composer.phar one's, then I transfer them on my desktop throught HDD. My composer.json that I customized: { "name": "user/silex", "require": { "silex/silex": "1.2" , "twig/twig": ">=1.8,<2.0-dev" , "doctrine/dbal": "2.2.*" , "symfony/security": "~2.3" , "symfony/security": "~2.3" }, "autoload": { "psr-4": { "Portal\\": "src/" } } } It works

Composer : how to add a dependency without network connection?

我的未来我决定 提交于 2020-12-25 01:08:13
问题 My profesionnal network block internet access. Some month ago I download the Silex framework from an archive (which contains composer.json file) and the composer.phar one's, then I transfer them on my desktop throught HDD. My composer.json that I customized: { "name": "user/silex", "require": { "silex/silex": "1.2" , "twig/twig": ">=1.8,<2.0-dev" , "doctrine/dbal": "2.2.*" , "symfony/security": "~2.3" , "symfony/security": "~2.3" }, "autoload": { "psr-4": { "Portal\\": "src/" } } } It works

Composer : how to add a dependency without network connection?

匆匆过客 提交于 2020-12-25 01:07:37
问题 My profesionnal network block internet access. Some month ago I download the Silex framework from an archive (which contains composer.json file) and the composer.phar one's, then I transfer them on my desktop throught HDD. My composer.json that I customized: { "name": "user/silex", "require": { "silex/silex": "1.2" , "twig/twig": ">=1.8,<2.0-dev" , "doctrine/dbal": "2.2.*" , "symfony/security": "~2.3" , "symfony/security": "~2.3" }, "autoload": { "psr-4": { "Portal\\": "src/" } } } It works

OSX -bash: composer: command not found

两盒软妹~` 提交于 2020-12-23 18:34:26
问题 If i type "composer" i get the above error message. I did on my macbook: curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer to install Composer globally. I had to manually create the /local/bin/composer directory, maybe this caused the error ? php composer.phar works if i in my code directory where the .phar file is. What could i do to solve the problem and run composer globally ? My ~/.profile export PS1="\W: " export CLICOLOR=1 export LSCOLORS

Laravel 5.1 Php artisan commands not working after composer update

跟風遠走 提交于 2020-12-13 18:46:47
问题 here is my composer.json require snippet. "require": { "php": ">=5.5.9", "laravel/framework": "5.1.35", "aws/aws-sdk-php-laravel": "~3.0", "lucadegasperi/oauth2-server-laravel": "5.1.*", "bosnadev/repositories": " 0.*", "laravelcollective/html": "5.1.*", "cartalyst/stripe-laravel": "3.0.*" }, I ran composer update in order to add new AWS services. but then I noted that all the vendor files are updated because of composer update command. now I'm getting error when I ran php artisan commands.