Composer Tutorial Part 1 - How to use Composer

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 69

  • @flashwriter74
    @flashwriter74 6 лет назад +10

    Just watched first composer video. As someone who kept looking at composer and having it fly right over their head a few times, this was really good. It actually went to the necessary level of detail instead of assuming users having familiarity with miscellaneous subtle details that are often left out.

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      This is the reason why I make tutorials. I am so glad to read this feedback. Happy to help. Please subscribe for more.

  • @sharonj731
    @sharonj731 6 лет назад +1

    Thank you Reval! I have looked for DAYS for an example of what it actually looks like to install a package using Composer, seeing what is going on. This embodies the detail of the relationship between the local server, composer, what the hierarchy looks like after it's installed, WHERE to install it in the first place! THANK YOU. Excellent work!! You kept it to a bare-bones example that provides such valuable clarity for a newbie. Thoughtful presentation, greatly greatly appreciated!!! You a-b-s-o-l-u-t-e-l-y ROCK!

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Wow, I really appreciate your comment. It really made my day. Please subscribed for more helpful videos.

  • @scarletpimpernel6813
    @scarletpimpernel6813 9 месяцев назад

    Thanks for your tutorial. Good balance between general overview and level of detail. Appreciated the hands-on code example. Great work👍

  • @reganstudio7107
    @reganstudio7107 3 года назад +3

    Thank you very much, very clear explanation, I love this video!

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      Thanks so much. Please consider subscribing for more!

  • @Viperdwarrior177
    @Viperdwarrior177 5 лет назад

    Need lesson/tip on using composer for an old project. I faced a lot of issues with composer if the project/website is old and need to install a new plugin. Dependencies never seems to met and it makes impossible to add new plugin. Sometimes old plugins aren't available anymore and I am forced to use newer ones for which I have no idea how to make sure to get right packages and update the older ones.

  • @ashokg.j.9174
    @ashokg.j.9174 3 года назад +2

    Thank you. This was perfect.

  • @alexknight264
    @alexknight264 4 года назад

    i got composer installed on my local pc but how can i use it to update my website on a host server? how can i access ftp directory with it?

  • @releNtless-eu3xc
    @releNtless-eu3xc 4 года назад

    I need to do this by using PHP and composer and this is the task, so what does this mean and how am I suppose to do it?
    Sorry I never programmed in PHP or used Composer before, Can u help?
    *The task
    [The aim is is implement the source code link to pass the pre written tests.
    To run the tests run ./vendor/bin/phpunit and look at the output.
    The toInt function should be able to translate any Roman Numerial to the correct integer.
    For example VI should return 6 and XX should return 20
    Cant get phpunit running ?
    Included is an index file (index.php) This should run on any web server (eg MAMP, XAMP etc)]
    *and this is what the source code looks like!

  • @NIKUNJPATEL-si1ep
    @NIKUNJPATEL-si1ep 7 лет назад

    in wamp localhost when i use via cmd then composer not work but use php strom terminal then work perfectly. what is reason?

  • @rmacster
    @rmacster 8 лет назад +2

    Great video. All the basics expressed succinctly. Thanks!

  • @csandreas1
    @csandreas1 5 лет назад

    if you want to update the library you perform the same procedure?

  • @loonahtics5945
    @loonahtics5945 4 года назад

    Im really new to this, this helps a lot! Thank youuu!

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      You're so welcome! Please consider subscribing for more! 😀

  • @DavidAshby1
    @DavidAshby1 5 лет назад

    I have downloaded composer for the purposes of reading xlsx files. I have watched a couple of tutorials to enable me to use the data within a mysql database.
    I have composer installed and ready to go but cannot get any further. Do you have, or are you considering doing a tutorial on reading from an xlsx file? Thanks

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Hi there, sorry I won't be creating a tutorial for reading an xlsx file.

  • @raziehzabihiasrami9264
    @raziehzabihiasrami9264 2 года назад

    Thank, exellent

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      Glad you liked it! Please subscribe for more. We are working full time on the channel now.

  • @bintekhan6160
    @bintekhan6160 5 лет назад

    Hi! Where did you write the command which you copy from packagist??
    Thanks

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      @@Ahmed-157 Yes, this is correct. You can use any command line tools.
      Windows Examples: Command Prompt, PowerShell, Git Bash
      Mac Examples: Terminal, iTerm

  • @matheuscruz8981
    @matheuscruz8981 5 лет назад +1

    Great lesson!

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Thanks so much. I am happy you found it useful.

  • @TheGarageboyz
    @TheGarageboyz 2 года назад

    got localhost is currently unable to handle this request.
    HTTP ERROR 500

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      Are you sure you have configured your local server correctly?

  • @kensleylewis
    @kensleylewis 5 лет назад

    this feels a lot like npm for javascript projects. so where can learn more about packages available through composer?

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Hi there. Sorry it took so long for me to respond. You are right, composer is a package manager for PHP. It was something the PHP world needed for a long time. You can find out more about composer packages Packigist: packagist.org/. It is the main composer respository.

  • @commanderbensisko
    @commanderbensisko 4 года назад

    ruclips.net/video/I6wm15OWyqg/видео.html : If you try installing a package and composer first checks the lock file and finds the package listed in there, why would it then be "installed"?
    Doesn't the presence of the package in the lock file mean it was previously installed?

    • @Yazan_Majdalawi
      @Yazan_Majdalawi Год назад

      I have the same question, if you have found a good resource for learning how Composer works, plz provide me with a link!

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      *> Doesn't the presence of the package in the lock file mean it was previously installed?*
      This is correct. The lock file will state the package is installed and it will state the exact version of that package.
      If you try installing the exact version of the package again, it won't do anything. If there is a difference in version number, the package will then be updated.
      *> if you have found a good resource for learning how Composer works, plz provide me with a link!*
      We have another video here which should make it clearer. ruclips.net/video/6Q7rCl5xlUY/видео.html
      Please let us know if you are still confused.

  • @ttvd94
    @ttvd94 7 лет назад

    I've got a shared hosting service for my website, so I don't have access to WHM and can't run commands like you did.
    Can I still use composer?

    • @StudyStreamPlus
      @StudyStreamPlus  7 лет назад

      I am not sure. More a question for your hosting company I think.

    • @dhrjani2
      @dhrjani2 7 лет назад

      I also have the same question. as composer runs on command line there is no way to use it on a cpanel. and lots of companies out there only provide their APIs in Composer format. It makes almost impossible to work with such APIs.

    • @ttvd94
      @ttvd94 7 лет назад

      I asked the question somewhere else and the solution was to install composer on localhost using XAMPP or WAMP or any similar program and then upload the related files to the server.
      You can fint Q&A here: github.com/php-telegram-bot/core/issues/491#issuecomment-299669601

    • @thestudioofhopecorporation3356
      @thestudioofhopecorporation3356 7 лет назад

      Download the website to your computer, install wamp or another webserver and then run the program or better yet, read your code!

  • @siddiquiquameruddin8741
    @siddiquiquameruddin8741 5 лет назад

    Can u please tell me command prompt name which you used

    • @Xean45
      @Xean45 5 лет назад

      Bash, however Windows' native command prompt works fine too. Just right-click on the windows icon and do a search for 'command'

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Git bash :-)

  • @mazood123y
    @mazood123y 5 лет назад

    The perfect tutorial for composer. Good work.

    • @StudyStreamPlus
      @StudyStreamPlus  5 лет назад

      No problem! Please subscribe for more like this! My more recent videos have much better production value haha.

  • @Viperdwarrior177
    @Viperdwarrior177 5 лет назад

    It's always easy to pull package for a new project but way too hard for adding one with old and existing projects

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      I guess this statement depends on your project. We all hate legacy projects :-D

    • @Viperdwarrior177
      @Viperdwarrior177 4 года назад

      Yes, one of an old project I was working on

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      @@Viperdwarrior177 Did you end up putting composer into it?

    • @Viperdwarrior177
      @Viperdwarrior177 4 года назад

      Yes, but it didn't work. I then complete my changes with composer. But still I wanted to know how to use composer in this condition. Most of the tutorial focus on easy stuff. I wanted to know about handling the tough issues.

  • @Max-kg4yf
    @Max-kg4yf 6 лет назад +1

    Great video tutorial but many work on hosts. Setting up a localhost using XAMPP or WAMP and using Composer is a lot of unnecessary BS when you can usually just add one line of code to include a library. Composer is some sort of weird cult. Anyone who really needs Composer is probably facing dependency hell.

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад +1

      Thanks for your comment. How do you work with PHP in your local environment?

  • @alamagoseniora8128
    @alamagoseniora8128 7 лет назад

    great great great video!

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Wow, thanks so much. I am really happy it helped you. Please subscribe for more.

  • @tonisun4785
    @tonisun4785 2 года назад

    7:07 Starts

  • @АлексейВоробьёв-щ8ф4ю

    Perfect!

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Thanks very much! Please subscribe for more!

  • @GreenAcreFarms
    @GreenAcreFarms 4 года назад

    Are you going to be covering the missing steps?

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      I am planning on redoing this video soon. Please subscribe and stay tuned for more information! :-)

  • @carlosbigo63
    @carlosbigo63 7 лет назад +1

    Great video

  • @hippopotamus86
    @hippopotamus86 4 года назад

    It can be such a headache to get working.

    • @StudyStreamPlus
      @StudyStreamPlus  Год назад

      What did you find difficult?
      Btw, please consider subscribing for more! 😀

  • @staaldak
    @staaldak 4 года назад

    Seems like a massive security risk to me. Probably sets up all sorts of back doors into your system.

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      Do you feel composer is the huge security risk?

  • @nightlifeking
    @nightlifeking 7 лет назад +1

    Thank you!

  • @RicardoSongs1
    @RicardoSongs1 6 лет назад

    Zoom? I can't see anything

    • @StudyStreamPlus
      @StudyStreamPlus  4 года назад

      I apologise for the production quality of this video. My videos have improved drastically since this video's inception. Would you benefit from this video being recreated at a higher quality.