Get rid of Composer Self-Update warnings — Windows Only

May 24, 2017 By - Usama Muneer | 318

    You guys might have noticed this little piece of warning while running composer in your command line.

    Composer Warning message

    In this short yet useful article, I’ll teach you how to get rid of composer self-update warning on your windows machine by simply adding a task scheduler, that will update your composer every time period you specified.

    Follow the simple steps below to get rid of this warning for like forever.

    Step # 01

    Open the Task Scheduler in your windows machine, and click on the Create Basic Task button on the right marked on the below screen.

    Step # 02

    On the next screen, Enter the name and description of the Task and hit next.

    Step # 03

    On the next step, select the time cycle for the task, I prefer to update composer every month, so i selected the monthly tab. but its totally up to you.

    Step # 04

    On the next step, specify your desired months to update your task and the date, on which you want your task to be performed. Hit next when you’re ready.

    Step # 05

    Click next to start the program.

    Step # 06

    In this next step, specify your composer.bat file path and hit next.

    In case, you’re facing some issue in getting your composer’s path in your machine, you can simply type in your command line:

    $ where composer

    like, in my case, its the following,

    Step # 07

    In this last step, you’ll see a summary of your task, hit finish to complete your task and forget about running composer self-update every now and then.

    Conclusion

    That’ll be all for this article. If you liked my article, please don’t forget to click on the heart button below or if you have any questions, feel free to ask. You can also follow me on Twitter.

    blog user
    Usama Muneer

    A web enthusiastic, self-motivated & detail-oriented professional Full-Stack Web Developer from Karachi, Pakistan with experience in developing applications using JavaScript, WordPress & Laravel specifically. Loves to write on different web technologies with an equally useful skill to make some sense out of it.

    Related Posts

    In this article, we'll go through a brief introduction on setting up PSR4 Autoloading using Composer within your project.

    What is composer?
    October 1, 2017 By - Usama Muneer

    If you're a PHP developer and has been coding up for years, you may have noticed that while developing in PHP, you have to re-invent the wheel every single time.

    Manually Installing composer is an advanced technique, however there are several reasons why a developer might prefer this reason instead of using the interactive installation routine.

    Over the years, Laravel has brought so much excitement in developing applications with its out of the box code-base