composer-php

Using private Composer VCS Git repo

耗尽温柔 提交于 2020-01-05 10:27:13
问题 I am trying to use my repo with composer. Fetching it as type package etc. worked well, but I would like to use it as a VCS. So, I added a composer.json to my repository looking like this: { "name": "gkm/storage", "authors": [ { "name": "David Schunke", "email": "my@email.me" } ], "require": { "php": ">=5.3.0" }, "autoload": { "psr-0": { "Gkm\\storage\\": "" } } } In the project, where I woult like to use the library from this repository, I added this composer.json: { "repositories": [ {

Wamp 3.1.3 Windows Environment PATH conflict [duplicate]

对着背影说爱祢 提交于 2020-01-04 06:27:49
问题 This question already has answers here : How To Run PHP From Windows Command Line in WAMPServer (11 answers) Closed last year . I just installed Wamp 3.1.3, and then installed composer. The composer added the path to php.exe to windows environment variables. But now Wamp shows error in context menu , that when clicked shows this message: There is an error. There is Wampserver path (c:/wamp64) into Windows PATH environnement variable: (C:\wamp64\bin\php\php7.2.4) It seems that a PHP

How To Make Composer (PSR-4) To Work With “.class.php” Extension?

时光总嘲笑我的痴心妄想 提交于 2020-01-04 05:25:20
问题 I've been facing a lot of problem with "Class Not Found" error. But recently I recognized the original problem. My previous two questions regarding the issue:- Composer Gives Error, "Class Not Found" PHP Composer PSR-4 Autoloading And Sub-Namespaces, Class Not Found I'm interested in working with classes having extension class.php , e.g. parent.class.php and child.class.php . But composer doesn't seem to recognize these files and "Class Not Found" error is displayed. The problem is resolved

How to fix Uncaught exception 'ReflectionException' with message 'Class log does not exist'?

亡梦爱人 提交于 2020-01-04 05:17:12
问题 I am facing an issue with composer on Windows Server 20012 R2 . I am trying to deploy a website and every time I run composer install or composer update I get the following: $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files > Illuminate\Foundation\ComposerScripts::postInstall > php artisan optimize Script php artisan optimize handling the post-install

Error Installing Laravel: Mcrypt PHP extension required

这一生的挚爱 提交于 2020-01-04 04:00:19
问题 I know there are a lot of questions about this on SO but none of them address my problem. I've checked everything they mention everything seems to indicate mcrypt is ok except when installing Laravel. Clearly I'm missing something. When installing Laravel as directed ( composer create-project laravel/laravel myproj --prefer-dist ) I get the error "Mcrypt PHP extension required" at what seems to be near the end of installation. As far as I can tell mcrypt is installed and enabled. Composer

Laravel 5 Seeder Class Does Not Exist

僤鯓⒐⒋嵵緔 提交于 2020-01-04 03:51:53
问题 I have a fresh Laravel installation. I have moved over code from a github repository that is a Laravel project, same version (5.3). Everything works fine, except for some reason the database seeds wont' run. For example, I can migrate from the github loaded migrations in the new Laravel installation, just as I would on the server that pushed the migrations to github in the first place. But I can't do php artisan db:seed , which means my beautiful little database is empty! >:( I get:

what a part does bower/bower-asset play in php application such as yii2

為{幸葍}努か 提交于 2020-01-04 01:50:47
问题 Recently I deployed some projects like trntv/yii2-starter-kit and so on.but all applications are publishing assets on '@vendor/bower' instead of'@vendor/bower/bower-asset'. I have read the question Yii2 Composer manage package in bower and bower-vendor and solved it . but I still feel confused about the directory vendor/bower/bower-asset . What's the part does bower/bower-asset play in php application? it is not a composer package but many theme store in there. Furthermore, bower is a

--enable-phar=shared Do I have to recompile PHP to Install Composer?

倖福魔咒の 提交于 2020-01-03 17:26:07
问题 I am trying to get Composer installed on a DreamHost VPS Linux 3.1.9-vs2.3.2.5vs2.3.2.5+ Web PHP Version 5.4.11 CLI Version PHP 5.4.11 (cli) phpinfo() output has only one reference to phar and it says --enable-phar=shared but when I attempt the following the output says I need phar enabled. sudo -u myuser curl -sS https://getcomposer.org/installer | /usr/local/php54/bin/php #!/usr/bin/env php Some settings on your machine make Composer unable to work properly. Make sure that you fix the

Command “clear-compiled” is not defined. Laravel 5.2

你说的曾经没有我的故事 提交于 2020-01-03 15:24:46
问题 I am trying to download Laravel HTML dependencies with Composer. composer.json is here: "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=5.5.9", "laravel/framework": "5.2.*", "illuminate/html": "5.2" }, And when I run composer update or php composer update , the terminal log is: E:\xampp\htdocs\lara-test>composer update > php artisan clear-compiled [InvalidArgumentException]

'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?

别等时光非礼了梦想. 提交于 2020-01-03 13:05:21
问题 I've recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml exists, it says 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do? 回答1: This is linux based code.. $ vendor/bin/phpunit Try this for windows.. vendor\bin\phpunit 回答2: Please try this command for windows: php vendor/phpunit/phpunit/phpunit 回答3: Install dependencies via composer $ composer update Run