composer-php

Composer ignoring zip dependecies' composer.json file

一笑奈何 提交于 2020-01-13 09:55:14
问题 I'm using Composer for a project that needs to handle some dependencies but I got a really weird issue. Composer is ignoring the composer.json file contained in child packages. My project needs to retrieve some custom zip packages, in these packages a composer.json file defines other requirements. The repositories of these requirements are declared in the root composer.json file since Composer cant recursively fetch repositories. The thing is that after my zip package is downloaded, unpacked

Composer ignoring zip dependecies' composer.json file

二次信任 提交于 2020-01-13 09:55:12
问题 I'm using Composer for a project that needs to handle some dependencies but I got a really weird issue. Composer is ignoring the composer.json file contained in child packages. My project needs to retrieve some custom zip packages, in these packages a composer.json file defines other requirements. The repositories of these requirements are declared in the root composer.json file since Composer cant recursively fetch repositories. The thing is that after my zip package is downloaded, unpacked

How to run composer update on PHP server?

一曲冷凌霜 提交于 2020-01-12 18:44:29
问题 Is there a way to run composer update command on our production/test environment? Problem is that i don't have access for Command Line. 回答1: Yes. there is a solution. but it could demands some server configuration... and some of these are forbidden by default due to security risks!! download composer.phar https://getcomposer.org/download/ - this is PHP Archive which can be extracted via Phar() and executed as regular library. create new php file and place it to web public folder. i.e. /public

How to run composer update on PHP server?

我的未来我决定 提交于 2020-01-12 18:44:08
问题 Is there a way to run composer update command on our production/test environment? Problem is that i don't have access for Command Line. 回答1: Yes. there is a solution. but it could demands some server configuration... and some of these are forbidden by default due to security risks!! download composer.phar https://getcomposer.org/download/ - this is PHP Archive which can be extracted via Phar() and executed as regular library. create new php file and place it to web public folder. i.e. /public

How to install laravel on a server running different php versions

我是研究僧i 提交于 2020-01-12 10:47:08
问题 im having issues to install laravel under my server running php 5.3 by default BUT i'm able to pick a version of php to run under any specific directory. guzzlehttp/guzzle 4.1.2 requires php >=5.4.0 -> your PHP version does not satisfy that requirement. so i choose php 5.4 to run on the directory that im trying to install laravel, but composer do not know that im running PHP 5.4 in that directory. How to fix this problem? 回答1: Try running composer command with --ignore-platform-reqs, e.g.

How to force composer to reinstall a library?

白昼怎懂夜的黑 提交于 2020-01-11 15:25:11
问题 I'm using the ZF2 skeleton app and it has a .gitignore that prevents external libraries from being commited to git. While debugging I like to go and change stuff here and there in the libraries' source to learn how things work. If these were version controlled it would be very easy to revert them back to their original state. How can I force Composer to reinstall a particular framework so that I can get a fresh -unmodified- copy again? PS: Please don't suggest removing the .gitignore file

Getting a fatal error when autoloading a PHP class

谁说我不能喝 提交于 2020-01-11 12:15:13
问题 I am attempting to use Cartalyst, a comprehensive PHP Library for Stripe payments. Here is a link to their documentation: https://cartalyst.com/manual/stripe/1.0. Here is the code I am trying to get to work: $stripe = Stripe::make('your-stripe-api-key'); $customers = $stripe->customers()->all(); foreach ($customers['data'] as $customer) { var_dump($customer['email']); } When I run the code above (in my real code I have my api inserted), I receive the following error: Fatal error: Class

Composer doesn't find local vcs dependency

给你一囗甜甜゛ 提交于 2020-01-11 12:15:13
问题 I have a project that depends on a local package which in itself depends on another local pakcage. Project { ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package1" }, ], "require": { "local/package1": "dev-master" } ... } Package 1 { ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package2" }, ], "require": { "local/package2": "dev-master" } ... } When I do a composer install on package1 , everything works as

Composer doesn't find local vcs dependency

有些话、适合烂在心里 提交于 2020-01-11 12:15:09
问题 I have a project that depends on a local package which in itself depends on another local pakcage. Project { ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package1" }, ], "require": { "local/package1": "dev-master" } ... } Package 1 { ... "repositories": [ { "packagist": false }, { "type": "vcs", "url": "/path/to/local/package2" }, ], "require": { "local/package2": "dev-master" } ... } When I do a composer install on package1 , everything works as

Error in installing omnipay in CodeIgniter

跟風遠走 提交于 2020-01-11 07:32:06
问题 I'm trying to add omnipay in CodeIgniter (version 2.2.4) I followed the instructions in installing composer using this link:https://philsturgeon.uk/blog/2012/05/composer-with-codeigniter/ but I'm having this error: Fatal error: Uncaught exception 'Omnipay\Common\Exception\RuntimeException' with message 'Class '\Omnipay\PayPal Express\Gateway' not found' in C:\xampp\htdocs\testserver\vendor\omnipay\common\src\Omnipay\Common\GatewayFactory.php:105 Stack trace: #0 [internal function]: Omnipay