PHPackages                             craftblue/php-mtgox-api-v2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. craftblue/php-mtgox-api-v2

ActiveLibrary

craftblue/php-mtgox-api-v2
==========================

An API wrapper around MTGox API v2 that's slightly more sane than some alternatives.

220PHP

Since Feb 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/cballou/php-mtgox-api-v2)[ Packagist](https://packagist.org/packages/craftblue/php-mtgox-api-v2)[ RSS](/packages/craftblue-php-mtgox-api-v2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

An API wrapper around MTGox API v2 that's slightly more sane than some alternatives. If you're interested in bitcoins, MTGox is the API for you.

By sane, I simply mean there's some internal method param validation that occurs to ensure you are passing valid values to the API.

Pre-reqs
--------

[](#pre-reqs)

Usage of Composer or direct inclusion of the library via `require_once 'src/craftblue/mtgox.php'`

Usage
-----

[](#usage)

There's two primary ways to make API calls that accomplish the same thing:

1. Using PHP's internal magic method `__call()`, allowing you to create human readable calls.
2. Using the built-in `request()` method where you supply the API endpoint as a string.

It's personal preference!

```
