composer-php

Loading a composer package through a Github fork

孤街浪徒 提交于 2020-01-24 04:46:10
问题 I forked a library on Github and now want to load my fork into the project without adding the forked library into packagist. I get the following error after adding the repository and require to my composer.json: Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package cnizzardini/ssl-certificate could not be found in any version, there may be a typo in the package name. Potential causes: - A typo in the package name - The package is not

Use composer to require only 1 file?

人走茶凉 提交于 2020-01-24 04:05:06
问题 Is it possible to require only 1 file from a composer package? I need only 1 or few files from a package and it would be pointless to require the whole package which consist of hundred of files when i would use only a few. Is it possible to do this via composer? 回答1: It's possible to include specific files in the current package with the files autoloading strategy: { "autoload": { "files": [ "path/to/my/file.php" ] } } If you need to require specific files from a package you installed with

Artisan returns blank

旧街凉风 提交于 2020-01-23 05:52:07
问题 Whenever I run any php artisan command like php artisan list , I get nothing back. No commands work at all. I have been searching a little around, and have tried the following: changing permissions for /root/.composer to 777 remove bootstrap/compiled.php file There is nothing in app/storage/logs/log-cli-.txt . I can view the site in the browser. I'm running on CentOS 6.3 64bit with PHP v. 5.5.11 - Laravel 4.1 回答1: This problem is pretty common and is usually related to some errors that are

Security concerns with using Composer Install in production environment

好久不见. 提交于 2020-01-23 05:37:05
问题 I am trying to design a deployment process for an enterprise level application. I have heard conflicting opinions on whether Composer can be used in the production environment. I understand that running composer update would be a mistake since you can pull in untested versions. Instead in production it is recommend that only composer install is used. So that being said, my biggest concern is security. How easy is man in the middle attack possible. Is it possible if packagist gets hacked that

Installing specific laravel 5 version with composer create-project

旧城冷巷雨未停 提交于 2020-01-22 12:36:44
问题 Today I try to install specific laravel version with composer create-project laravel/laravel=5.1.8 your-project-name --prefer-dist , because some of the plugins have trouble with version 5.1.9 and above. However, the installation fail and it says Could not find package laravel/laravel with version 5.1.8. How can I install it with composer? 回答1: you can do: composer create-project laravel/laravel myproject --prefer-dist v5.1.8 To see available versions, you can visit its packagist page (lower

Installing specific laravel 5 version with composer create-project

百般思念 提交于 2020-01-22 12:36:11
问题 Today I try to install specific laravel version with composer create-project laravel/laravel=5.1.8 your-project-name --prefer-dist , because some of the plugins have trouble with version 5.1.9 and above. However, the installation fail and it says Could not find package laravel/laravel with version 5.1.8. How can I install it with composer? 回答1: you can do: composer create-project laravel/laravel myproject --prefer-dist v5.1.8 To see available versions, you can visit its packagist page (lower

Capifony can't download composer - not following redirect

三世轮回 提交于 2020-01-21 15:22:23
问题 I'm using Capifony to deploy my Symfony2 application, but as of today it can't download composer - jenkins output: [32m--> Downloading Composer[0m * executing "sh -c 'cd /data/www/testing/s00110/releases/20150426161117 && curl -s http://getcomposer.org/installer | php'" servers: ["*domain*"] [*domain*] executing command ** [out :: *domain*] <html> ** [out :: *domain*] <head><title>302 Found</title></head> ** [out :: *domain*] <body bgcolor="white"> ** [out :: *domain*] <center><h1>302 Found<

Composer run-script of nested packages

落花浮王杯 提交于 2020-01-21 11:40:36
问题 I have composer project without code but with list of dependencies. I want to run composer install for download all dependent packages and run some bash commands into each one after it. My composer.json: { "name": "testmain/testmain", "description": "testmain", "minimum-stability": "dev", "repositories": [{ "type": "package", "package": { "name": "testsub/testsub1", "description": "testsub/testsub1", "version": "master", "source": { "url": "https://github.com/testsub/testsub1", "type": "git",

Where and how can I run composer commands?

血红的双手。 提交于 2020-01-17 05:48:46
问题 I'm kinda lost with Composer and the documentation isnt really helping me. I bascially want to install Laravel but I dont know where I need to run the commands and how. I've installed composer via the exe on a windows PC that runs XAMPP. For Example this command: composer global require "laravel/installer=~1.1" How can I run this command? In the windows console? And does it matter where? 回答1: Go to htdocs folder and right click on mouse then you will see one option called use composer here

Warning: require(C:\xampp\htdocs\phpSlimHttpServer\public/../vendor/autoload.php): failed to open stream [closed]

偶尔善良 提交于 2020-01-16 08:36:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . I am getting started with the Slim framework . I have downloaded the Slim Framework 4 Skeleton Application which contains the following routes: $app->options('/{routes:.+}', function (Request $request, Response $response) { // CORS Pre-Flight OPTIONS Request Handler return $response; }); $app->get('/', function