always say something positive first:

then the critique:

follow the excellent guide: https://getcomposer.org/download/

mkdir /var/www/html/composer
cd /var/www/html/composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'THISWILLHAVECHANGEDBYNOW') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

su - root
cd /var/www/html/composer
mv composer.phar /usr/local/bin/composer

problem: there is not one central repository server that has all the available packages, no a “composer.lock” file points to a github repo:

https://github.com/sumup/sumup-ecom-php-sdk.git

from which a download will be performed.

so essentially it is like:

git clone https://github.com/sumup/sumup-ecom-php-sdk.git

so why is composer needed in the first place?

from user to dev:

  • the positive:
    • php is easy to learn
    • php is faster for web backends than python (for web backend stuff: it is slower than java but faster than python)
    • php related environments might be a wee bit complicated to setup
  • if the user wants to become a php dev check out bro’s excellent fun and easy php examples 🙂
    • just4info:
      • all those fancy php frameworks symphony sometime consisting of more than 10.000 files (thanks for making it open source but that’s a wee bit against unix kiss)
      • are just libraries that a dev wrote to use it, the user-soon-php-dev DOES NOT NEED them to get started, alsow: if the user-soon-php-dev writes libraries + uses xdebug, the user-soon-php-dev is the only one who REALLY understands whats going on “under the hood” why things work or fail

keep it up and running:

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin