Composer powered Koala Framework Dependencies

"Composer is a application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. It was developed by Nils Adermann and Jordi Boggiano, who continue to manage the project. They began development in April 2011 and first released it on March 1, 2012. Composer is strongly inspired by Node.js's "npm" and Ruby's "bundler""
(Source: Wikipedia)

Koala Framework will use composer starting with version 3.8. This is a huge step that completely changes how deployment is done.

So why are we switching to composer?

  • it's the de-facto standard for modern php development
  • it allows easy usage of any required external package that can be found on packagist.org
  • it allows updating libraries without huge effort
  • it replaces the huge, monolitic library repository

Using Composer

First, you need to install composer, follow the official instructions - on Linux I would run:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

Now that composer is installed (and in your $PATH) you can start using it in any composer enabled project by changing working directory into the project and executing:

composer install

This will download and install all requirements to run the project into the vendor folder. This includes koala-framework itself which can now be found on the official composer package repository packagist.org

As Koala Framework does nothing unusual or special with composer refer to the composer documentation for further usage.

Deployment

One question remains though: how to deploy the vendor folder?

1. You can run composer install on the production server which automatically downloads all dependencies.

2. You can copy the locally generated vendor folder to the production server.

I would recommend (2) as that has less dependencies on the production server, you can even use it without shell access at all.

Koala Framework contains a simple script that creates an archive containing all required files to run a project (that is project code + vendor + build), start the following script to generate deploy.tar.gz:

./vendor/koala-framework/scripts/build-deploy-package
This entry was posted in Koala Framework by Niko Sams. Bookmark the permalink.

656 Thoughts on "Composer powered Koala Framework Dependencies"

wh0cd2728788 [url=xenical02.us.org/]Xenical[/url] [url=ventolin03.us.org/]PRICE OF VENTOLIN INHALER[/url] [url=nolvadex02.us.com/]nolvadex 10 mg[/url] [url=tretinoin911.us.org/]tretinoin gel[/url] [url=valtrex03.us.org/]valtrex[/url]
wh0cd3212384 [url=valtrex02.us.com/]valtrex pills[/url]
wh0cd310808 [url=amantadine911.us.com/]amantadine[/url] [url=accutane02.us.com/]accutane 5 mg[/url] [url=mobic911.us.com/]mobic medication[/url] [url=tadalafil02.us.org/]tadalafil lowest price[/url] [url=tadalafil02.us.com/]Tadalafil[/url] [url=acyclovir02.us.com/]zovirax 5[/url] [url=prednisolone02.us.com/]Prednisolone[/url] [url=cialis01.us.org/]cialis professional online[/url] [url=antabuse911.us.com/]Antabuse[/url] [url=paroxetine911.us.org/]paroxetine pills[/url] [url=tamoxifen911.us.com/]tamoxifen pills[/url]
wh0cd310808 [url=albuterol02.us.org/]albuterol sulfate inhalation solution[/url] [url=tadalafil02.us.com/]tadalafil[/url] [url=viagra02.us.org/]discover more here[/url] [url=cialis02.us.org/]Generic Cialis India[/url] [url=dapoxetine911.us.org/]dapoxetine for premature ejaculation[/url]
wh0cd794404 [url=albuterol02.us.org/]look at this[/url] [url=prednisolone02.us.com/]prednisolone without prescription[/url] [url=acyclovir02.us.com/]aciclovir[/url]
wh0cd1761596 [url=dapoxetine911.us.com/]dapoxetine[/url]
wh0cd3212384 [url=cephalexin02.us.org/]read this[/url]
wh0cd1278000 [url=nexiumonline.store/]buy nexium online cheap[/url] [url=cialis.fun/]cialis[/url] [url=moduretic.fun/]moduretic[/url] [url=valtrex.fun/]generic for valtrex buy without a prescription[/url] [url=phenergan.fun/]phenergan online[/url] [url=zanaflex.fun/]buy zanaflex[/url] [url=amitriptylinehydrochloride.store/]elavil medication[/url] [url=propeciacost.store/]propecia[/url] [url=toprolxl.fun/]can you cut toprol xl in half[/url] [url=baclofen10mg.store/]baclofen[/url] [url=zyban.fun/]more help[/url]
wh0cd310808 [url=amantadine911.us.com/]amantadine hcl[/url]
wh0cd310808 [url=serpina.us.org/]generic serpina[/url] [url=buyserpina.us.com/]Serpina[/url] [url=buypaxil.us.com/]paxil erectile dysfunction[/url] [url=buymotrin.us.org/]motrin[/url]

Leave a Reply

Your email address will not be published.

Github Activity

nsams commented on pull request koala-framework/kwc-newsletter#5

@nsams
nsams commented on pull request koala-framework/kwc-newsletter#5
Feb 22, 2018

bitte um abstimmung bin benjamin damit die bundles gleich strukturiert sind https://gitlab.vivid-planet.com/vivid/kwf-carlog-auth

nsams commented on issue koala-framework/koala-framework#736

@nsams
Feb 20, 2018

Yes, that is the correct fix, ajax requests timeout after 30 seconds by default. Now why the request is that slow is a completely different topic, …

nsams starred ionic-team/stencil

@nsams
Feb 19, 2018
ionic-team/stencil

A simple, reusable web component compiler

TypeScript 2.3k 5 issues need help Updated Feb 19

nsams commented on pull request koala-framework/koala-framework#728

@nsams
nsams commented on pull request koala-framework/koala-framework#728
Feb 15, 2018

des funktioniert dann nicht mehr

nsams commented on pull request koala-framework/kwc-newsletter#2

@nsams
nsams commented on pull request koala-framework/kwc-newsletter#2
Feb 15, 2018

bitte da keine leerzeile