Questions tagged as 'composer'

1
answer

How to define the semantics of packages downloaded with composer?

I created some PHP packages with composer help as a dependency manager and made it available in Packagist ( link ). p> After uploading the packages, I installed them inside a Laravel project. For this I used the following statement: compose...
asked by 16.11.2016 / 23:18
1
answer

Composer.lock accessible via web

Recently I installed the composer in a project of mine, I liked it a lot because it is a great tool, however one of the generator files the composer.lock is accessible by the browser, as I do not understand much about this tool I'm a bit afraid,...
asked by 30.12.2014 / 14:21
1
answer

Composer with XDEBUG - PHP

I have XDEBUG installed on my PHP . In this scenario, when composer installation is done, I get an error message about runtime performance, according to the picture below: Myquestioniswhatisthescopeofthisperformancedrop?Itwouldonlybeinc...
asked by 18.06.2016 / 21:55
1
answer

How to automatically include a file, which is not a class, in the composer?

In composer, usually when we set up autoload for files containing classes, I usually do this: "autoload" : { "psr-4" : { "WallaceMaxters\Timer\" : 'src/timer'} } Composer will automatically load the file that has the same class name as...
asked by 15.01.2016 / 16:11
1
answer

Package downgrade in laravel

I'm facing a problem to run composer install because of a package that is incompatible with the version of laravel I use at the moment; The version I have is 4.1 with php 5.6, but when I run the install I get the message;   ...
asked by 21.11.2017 / 14:25
1
answer

What is the best way to organize a directory for a web project? [closed]

What is the best way to organize directories for a PHP web development project?     
asked by 10.06.2015 / 00:24
1
answer

What is the difference between normal and optimum dump-autoload in Composer?

In the composer it is possible to auto-generate the autoload with the command composer dump-autoload . But it is also possible to generate an "optimized autoload" with the command composer dump-autoload -o . Would you like to k...
asked by 13.04.2016 / 14:22
1
answer

Autoload class PSR4

I would like to create a autoload class that follows the PSR4 recommendations and can be used independently of the Composer autoload >. The application I'm creating will have the following structure: /root |--/src...
asked by 08.10.2015 / 23:26
1
answer

Configuring CakePHP with Composer

I installed CakePHP on a MAMP server (Mac OS X) and configuring the cakephp-upload plugin had the hint of install the plugin using Composer . I configured my composer.json as follows: { "name": "designliquido/loja", "descr...
asked by 16.08.2014 / 20:47
1
answer

Error adding composer (Class not found)

I'm getting the following error:    Fatal error: Class 'wkhtmltopdf \ Pdf' not found in   /Applications/XAMPP/xamppfiles/htdocs/common/class/PrePagoConsulta.php   online 480 Code snippet: use wkhtmltopdf\Pdf; class PrePagoConsulta exte...
asked by 31.10.2017 / 15:11