Mark Alan
Mark Alan

Reputation: 455

installing php app via composer

I wanted to install via composer given information like this

{
   "name": "bitcoin app",
   "require": {
       "slim/slim": "2.2.0"
   }
}

I am unable to recognize do I have to write this to a php file and upload to the server?

Upvotes: 0

Views: 510

Answers (3)

muhammad faizan altaf
muhammad faizan altaf

Reputation: 42

1) First you need to create or found composer.json

2) Then write your code in this file

3) In last you have to update composer.

Upvotes: 0

Dave L
Dave L

Reputation: 984

Composer is a PHP based dependency management system.

That's a snippet of a composer.json file used to get & manage initial dependencies, to use it you'll need to have PHP & Composer installed and then create a file called composer.json in the location you'd like to have the project created.

Once you'd done that run composer install to get the dependencies. This won't actually install an app persay, you'll still need to make that yourself.

Scotch.io has a decent beginners guide to Composer if you're uncertain about how to install it & what it's actually used for.

Upvotes: 1

Clarence
Clarence

Reputation: 721

No. You should write this to a json file named composer.json.

Then use composer to install the package: composer install

Upvotes: 0

Related Questions