Skip to content

Instantly share code, notes, and snippets.

@tps2015gh
Last active February 9, 2017 04:19
Show Gist options
  • Save tps2015gh/f43062d0f33c5628aaf421d8f560a9ab to your computer and use it in GitHub Desktop.
Save tps2015gh/f43062d0f33c5628aaf421d8f560a9ab to your computer and use it in GitHub Desktop.

how to composer update

for xampp user , windows os

  • use this batch to update and install in
c:\> c:\xampp\php\php.exe composer.phar update
c:\> c:\xampp\php\php.exe composer.phar install
  • will download/update component to c:\xampp\htdocs{yourproject}\vendor
  • in vendor directory will have autoload.php
  • audoload.php can use like this
<?php 
   include("vendor\autoload.php"); 
   $obj = new ClassInLibraryYouLoadWithComposer();
   $obj->user_your_method();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment