Reputation: 455
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
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
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
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