composer-php

Download tcpdf manually without using composer in Laravel 4

放肆的年华 提交于 2019-12-20 06:39:46
问题 I'm trying to download TCPDF library to my project using Composer (Laravel 4), but I can't. Sometimes this error occurs (http://i.stack.imgur.com/aaPDz.jpg) and sometime this error (http://i.stack.imgur.com/quXMB.jpg) I want to download it and add it in laravel manually without using composer. 回答1: When you say "without using composer ", I'm going to assume you mean "without using composer for the download". With the following solution you'll still need to invoke a composer command, but its

Errors in installing php composer on windows

﹥>﹥吖頭↗ 提交于 2019-12-20 06:30:18
问题 While installing the composer to user the laravel framework, I got some errors : Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed file_get_contents(): Failed to enable crypto file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:

Composer autoloader + slim framework - fatal error: Class 'Slim\Slim' not found?

三世轮回 提交于 2019-12-20 04:22:25
问题 How can I use composer autoloader to load slim? I have it a go below, composer.json: { "autoload": { "psr-4": { "Vendor\\Namespace\\": "" } } } index.php: require dirname(__FILE__).'/vendor/autoload.php'; use \Slim\Slim; Slim::registerAutoloader(); //Instantiate a Slim application: $app = new Slim(); //Define a HTTP GET route: $app->get('/', function () { echo "Hello!"; }); $app->get('/hello/:name/', function ($name) { echo "Hello, $name"; }); //Run the Slim application: $app->run(); error:

Composer won't load private repository within private repository?

安稳与你 提交于 2019-12-20 04:13:39
问题 So I am trying to leverage the power of composer packages to make my application more modular. So my main application is now depending on a private repository which I am pulling in like so: "repositories": [ { "type": "vcs", "url": "../tenant-package.git" } ], "require": { "archiveonline/tenant-package": "dev-master#a9ee4ec" }, This works well and it pulls in the tenant-package locally and if I update the url to a bitbucket url, it still works fine. Now the tenant-package has another private

Working on forked GitHub repository through Composer

假如想象 提交于 2019-12-20 03:39:05
问题 I hope my question is not too vague, but can't get a proper answer by searching. I have the following situation; We are working on a project and have certain dependencies installed through Composer. One of these dependencies is quite outdated and requires some fixes and additions. I have forked this repo on GitHub and added it to Packagist. To work on the code, I need it running in my project and edit from there to see if my changes work, but it is in the vendor folder, where it is installed

Strange characters in PHP Composer and Laravel installer output - Windows 10 CMD

元气小坏坏 提交于 2019-12-20 03:14:58
问题 I have this problem on Windows 10 -- PHP Composer showing strange characters. I have tried to install ansicon as suggested here and it solved the problem but then if I try to use terminal in JetBrains PhpStorm it's crashing... Maybe I need to fix it without that ansicon but I can't find how. I have this problem only on my Laptop -- on my Desktop it's working perfectly fine. They both have Windows 10 and PHP + Composer at the latest versions. 回答1: I had the same problem, friend. Have you tried

Composer behind proxy not working for symfony project

走远了吗. 提交于 2019-12-20 01:45:12
问题 In my workplace network we have to use a proxy. I want to use Composer a to download some package dependencies for my Symfony2 projects. It does not work even after declaring the environment variable with the proxy information. I noticed that we are also unable to revolve any external name using the DNS of the company. And I think that one is the main problem that does not alow us to download with composer. The truth is that I can not change any thing on those servers or policies of the

composer package testing bootstrap

女生的网名这么多〃 提交于 2019-12-19 18:58:18
问题 I've written a package and as part of the development proccess I want to run unit tests on it. This basically means I need a bootstrap file to register the autoloader for my package. Any package I look at doesn't have a specific bootstrap file, thus I don't quite understand how the developers are testing their own packages. This is my directory structure src .CompanyName ..PackageName ...Class 1 ...Class 2 tests .Class1Test .Class2Test composer.json phpunit.xml.dist Now if I run phpunit

Zend Framework 2 Autoload Third Party library using composer

帅比萌擦擦* 提交于 2019-12-19 12:04:54
问题 I am trying to use composer to autoload a third party library into my ZF2 application - specifically Google api. I followed the answer in this post on SO, edited my composer.json "autoload": { "psr-0": {"Googleanalytics\\": "vendor/google-api-php-client/src/"} } and ran update. I can see the entry in composer/autoload_namespaces.php 'Googleanalytics\\' => array($vendorDir . '/google-api-php-client/src'), but i still get a fatal error class not found when trying to instantiate a class in that

Class 'Illuminate\Foundation\Application' not found Laravel

扶醉桌前 提交于 2019-12-19 11:52:41
问题 I installed via composer the Guzzle and i received this error, > @php artisan package:discover PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /home/vagrant/PROJ/memo/laravel_project/bootstrap/app.php:14 Stack trace: #0 /home/vagrant/PROJ/memo/laravel_project/artisan(20): require_once() #1 {main} thrown in /home/vagrant/PROJ/memo/laravel_project/bootstrap/app.php on line 14 Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found