Download the PHP package evernote/yinxiang without Composer

On this page you can find all versions of the php package evernote/yinxiang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yinxiang

Evernote SDK for PHP

Evernote API version 1.25

Overview

This SDK contains wrapper code used to call the Evernote Cloud API from PHP.

The SDK also contains two samples. The code in sample/client demonstrates the basic use of the SDK for single-user scripts. The code in sample/oauth demonstrates the basic use of the SDK for web applications that authenticate using OAuth.

Prerequisites

This SDK makes use of PHP namespaces, and as such requires PHP 5.3 or later.

In order to use the code in this SDK, you need to obtain an API key from http://dev.evernote.com/documentation/cloud. You'll also find full API documentation on that page.

In order to run the sample code, you need a user account on the sandbox service where you will do your development. Sign up for an account at https://sandbox.evernote.com/Registration.action

In order to run the client sample code, you need a developer token. Get one at https://sandbox.evernote.com/api/DeveloperToken.action

Getting Started - Client

The code in sample/client/EDAMTest.php demonstrates the basics of using the Evernote API, using developer tokens to simplify the authentication process while you're learning.

  1. Open sample/client/EDAMTest.php
  2. Scroll down and fill in your Evernote developer token.
  3. On the command line, run the following command to execute the script:

    php EDAMTest.php

Getting Started - OAuth

Web applications must use OAuth to authenticate to the Evernote service. The code in sample/oauth contains a simple web app that demonstrates the OAuth authentication process.

  1. Open the file sample/oauth/config.php
  2. Fill in your Evernote API consumer key and secret.
  3. Deploy the sample/oauth directory to your web server
  4. Load the web application in your browser (e.g. http://localhost/oauth)

There are two pages in the sample. index.php demonstrates each step of the OAuth process in detail. This is useful for developers, but not what an end user would see. sampleApp.php demonstrates the simplified process, which is similar to what you would implement in your production app.

Getting Started - OAuth with Opauth

  1. Install the dependencies

    cd sample/oauth_with_opauth

    php composer.phar install

  2. Install the Strategy

    cd sample/oauth_with_opauth/vendor/opauth/opauth/lib/Opauth/Strategy/README.md

    git clone git://github.com/evernote/opauth-evernote.git Evernote

  3. Open the file sample/oauth_with_opauth/config.php
  4. Fill in your Evernote API consumer key and secret.
  5. Fill the 'dir' key as follow :

    If your url is http://localhost/oauth_with_opauth, path should be set to '/oauth_with_opauth/auth/'

  6. Deploy the sample/oauth_with_opauth directory to your web server
  7. Load the web application in your browser (e.g. http://localhost/oauth_with_opauth)

Installing SDK using Composer

Using Composer is one of the options to install Evernote SDK for PHP.

  1. Add "evernote/evernote" as a dependency in your project's composer.json file.

  2. Download and install Composer.

    curl -s "http://getcomposer.org/installer" | php

  3. Install your dependencies.

    php composer.phar install

  4. Require Composer's autoloader by adding the following line to your code's bootstrap process.

    require '/path/to/sdk/vendor/autoload.php';

Usage

OAuth

To obtain the access token

Now you can make other API calls

UserStore

Once you acquire token, you can use UserStore. For example, if you want to call UserStore.getUser:

You can omit authenticationToken in the arguments of UserStore/NoteStore functions.

NoteStore

If you want to call NoteStore.listNotebooks:

NoteStore for linked notebooks

If you want to get tags for linked notebooks:

NoteStore for Business

If you want to get the list of notebooks in your business account:


All versions of yinxiang with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package evernote/yinxiang contains the following files

Loading the files please wait ....