Reputation: 11
I am trying to integrate the Evernote API into my laravel web app I am working on, but with the new PHP SDK there is limited documentation. When I try to use composer to install it I get an error. I'm somewhat new to composer so I may just be missing something.
The command it says to use is:
curl -sS https://getcomposer.org/installer | php
$ composer require evernote/evernote-cloud-sdk-php dev-master
I've tried it in 3 different spots, my home directory (~), my app's directory, as well as within the evernote download. The first 2 give me the error:
[UnexpectedValueException]
Could not parse version constraint @dev-master: Invalid version string "@dev-master"
and when i run within the evernote download folder, I get:
- The requested package evernote/evernote-cloud-sdk-php 2.0 could not be found.
Upvotes: 1
Views: 446
Reputation: 11567
This worked for me as far as composer dependencies go with Laravel 11
composer require ishannz/laravel-evernote-cloud
Upvotes: 0
Reputation: 6176
Try omitting the version string when running composer:
composer require evernote/evernote-cloud-sdk-php
... And you have to do it from your app's root (where composer.json
is)
EDIT:
See the comments to this answer. The problem was an earlier attempt to run a command with a version string of @dev-master
, which then was in composer.json
. Removing the at-symbol solved the problem.
Upvotes: 1