Top 20 Composer Command list

In this tutorial im going to share top 20 composer command list, its very helpfull for you and your project.

  1. In this command you can see all the list of new updates of the installed packages in your project.
composer outdated

2. View all the list of available commands.

composer list

Now you see composer list with version

3. Update your composer by self

composer self-update

4. If you want to clear all packages cache, run below code.

composer clear-cache

5. You can query Composer to find where it has set the user $COMPOSER_HOME directory.

composer config --list --global

6. You can update a specific package by including the package name in the “self-update” command as below:

composer self-update 1.0.0-alpha7

7. Use this command line and navigate to the root folder of your project and enter

composer init

8. To check the composer current version

composer -v

9. When your composer command screen is frozen, and you want to know if it’s working or not, use the following -vvv flag to print out all the debug logs.

COMPOSER_MEMORY_LIMIT=-1 composer update -vvv

10. Show a list of the packages installed with their version number.

composer info

11. Show a list of the packages installed with their version number.

composer licenses

12. It regenerates the list of all the classes that need to be included in the project (autoload_classmap. php)

composer dumpautoload -o

13. Downloads and installs all the libraries and dependencies outlined in the composer.lock file.

composer install

14. Install composer without installing anything

composer install --dry-run

15. In order to get the latest versions of the dependencies and to update the composer.lock file, you should use the update command. This command is also aliased as upgrade as it does the same as upgrade does if you are thinking of apt-get or similar package managers.

composer.phar update

Thanks ??

Related Posts

Blade in Laravel

Blade is the simple,yet powerful templating engine that is included with laravel. Blade does not restrict you from using plain php code in your templates. Blade templates…

Read More

CRUD USING QUIRY BUILDER IN LARAVEL.

We are performing crud opertion using quiry builder in laravel STEP : 1 Create Laravel project by running this command in terminal CMND :– Laravel new project_name…

Read More

Controller In Laravel

Controllers can group related request handling logic into a single class, Instead of defining all of your request handling logic as closure in route files ,you may…

Read More

LARAVEL ROUTING

All Laravel routes are define in route files , which are located in the route directory ,These file are automatically loaded by the framework. The most basic…

Read More

MVC (MODEL VIEW CONTROLLER)

MVC stands for Model–view–controller. The MVC is an architectural pattern model that seprates an applications into three logical components.(Model , View, Controller) MVC was first introduce in…

Read More

ReflectionException : Class BlogsTableSeeder does not exist

When i type php artisan db:seed command. It’s showing this type of errors. [ReflectionException]Class UserTableSeeder does not exist Here is my BlogsTableSeeder <?phpuse Illuminate\Database\Seeder;class BlogsTableSeeder extends Seeder{…

Read More
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x