It does exist a command to generate the composer.lock from a composer.json? Something similar ruby’s bundler : $ bundle lock Answer If you do not have a composer.lock The answer is “no”, you have to generate the lock file using: Installing Without composer.lock If you have never run the comm…
Tag: composer-php
Problems with installing composer
I am currently trying to install composer in order to install laravel. Following their website instructions, I am entering the following code into my terminal: But without success, I get the following error: This gives me the notion that I do not have permission to do this, is this the reason and why is it oc…
How to set php version for composer when having multiple xampp versions?
I have two xampp versions in my machine one have php version 5.4 and other having 7.1(recently installed.) I usually use composer command to download laravel. previously i get laravel version 5.0.X when i download because of my php vesrion(5.4) but even after installing new xampp(having php version 7) compose…
Laravel throws ‘The bootstrap/cache directory must be present and writable’ error after update
I used ‘composer update’, which updated a few packages. During the updating process the website still functions. However, after it says ‘The compiled services file has been removed’, the website doesn’t load and instead says: The weirdest thing is, when I run ‘composer upda…
PHP codesniffer path to whole project
I`m new to this but i have installed composer and with it installed PHP Codesniffer. Now, how can i use php codesnifer to check for files in my entire project folder? My directory structure is something like this: If i try to run it will check the files inside of the functions files inside of the functions di…
using SncRedisBundle on platform.sh
I’m trying to get my app hosted by platform.sh, my problem is that I use SncRedisBundle, with this config: When I push to platform.sh, their build process include a call to composer update, which end like this: Generating optimized autoload files > IncenteevParameterHandlerScriptHandler::buildParamet…
Composer installation requirements
I am trying to install composer to the laravel project. When im doing sudo composer install in projects directory it shows me two errors: I was checking how to install it and I found these commands: composer require simplesoftwareio/simple-qrcode composer require esendex/sdk Anyway, they are giving me the sam…
How to add private github repository as Composer dependency
I have the following in my Laravel 5.1 projects composer.json to add a public github repository as a dependency. … “repositories”: [ { “type”: “package”, “package”: { “name”: “…
Doing a “composer install” inside a Symfony console
I have to launch inside a working directory a composer install after a jQuery success (I’m developing a git panel under Silex). I have been told it could be well done with Symfony Console, because it can keep some options. But I have really no idea how to call it. I created a class which extends Command…
Laravel : phpunit cannot open file ExampleTest.php
Hi i am quit new in Laravel PHPUnit, getting the following error : I don’t have idea why i am getting this error. I installed PHPUnit globally and when i run “phpunit” in terminal it runs fine. But I want to run it on specific file like : Thanks In Advance. Answer Make sure you are on the pr…