Download the PHP package davidvanerkelens/ynab-php-client without Composer

On this page you can find all versions of the php package davidvanerkelens/ynab-php-client. 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 ynab-php-client

PHP client library for YNAB

build status version release date license

This is a PHP client implementation for the You Need A Budget (YNAB) API.

:warning: This library is still in active development. Not all code is covered by tests yet, and contracts are subject to change. Breaking changes will be released according to semantic versioning version numbers.

Installation

Using composer

Manual installation

Download the contents of this repository, and include the vendor/autoloader.php file.

Basic usage

In order to use this library, you need an API key. See the YNAB API documentation for more information about this.

Via the $client object, all non-deprecated methods available on the YNAB API can be accessed. See this document for all available methods on the client object.

Server knowledge

Several endpoints can be provided with a number, indicating the last server knowledge state. If available, the server knowledge state is included in the response object.

Error handling

If a request to the API returns an unexpected status code, a YnabErrorException will be thrown. In this exception, an instance of ErrorResponseInterface can be found, which contains the error reported by the YNAB API.

Milliunits

All amounts reported by the YNAB API are in milliunits format. A converter for this format is available.

Rate limiting

YNAB's API is rate limited to 200 requests per access token per hour. The current usage is returned by the YNAB API in a header, which you can fetch via the client object after a call to the API has been performed.

This function will return null if no requests have been made yet. The returned value of this function is the number of requests made towards the rate limit as reported at the moment of the last response from the YNAB API.

Caching

This library supports caching for all GET requests. By default, a simple in-memory cache will be used with a timeout of 5 minutes. If you want to disable caching, you can do so via the configuration object.

In the same way, you can configure the timeout for the cache.

You can also call the setCacheTimeout function with null to disable expiration of cached items.

It is also possible to provide your own caching adapter that implements the PSR-6 CacheItemPoolInterface.

Contributing

This library is still an active work in progress by the author. Pull requests are appreciated, but the library can undergo structural changes at any moment in time.

Authors

License

MIT


All versions of ynab-php-client with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.0
symfony/serializer Version ^5.3
symfony/property-access Version ^5.3
doctrine/annotations Version ^1.13
fig/http-message-util Version ^1.1
symfony/cache Version ^5.3
phpdocumentor/reflection-docblock Version ^5.2
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 davidvanerkelens/ynab-php-client contains the following files

Loading the files please wait ....