PHPackages                             1000nettles/factom-api-php - 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. [API Development](/categories/api)
4. /
5. 1000nettles/factom-api-php

ActiveLibrary[API Development](/categories/api)

1000nettles/factom-api-php
==========================

A simple PHP wrapper for the Factom API

0.1.1(8y ago)125MITPHPPHP ^5.3.3 || ^7.0

Since Aug 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/1000nettles/factom-api-php)[ Packagist](https://packagist.org/packages/1000nettles/factom-api-php)[ Docs](https://github.com/1000nettles/factom-api-php)[ RSS](/packages/1000nettles-factom-api-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

factom-api-php
==============

[](#factom-api-php)

A Simple PHP Wrapper for any Factom API v2 calls (including calls to *factomd* and *factom-walletd*)

Find the Factom API reference documentation here:

Installation
------------

[](#installation)

Using Composer:

`composer require 1000nettles/factom-api-php`

Normal Require:

```
require_once('FactomAPIAdapter.php');
```

How To Use
----------

[](#how-to-use)

#### Launch any Factom Command-Line Apps

[](#launch-any-factom-command-line-apps)

The PHP Factom API integration connects to a locally running instance of *factomd* or *factom-walletd*. When you run these locally or on your server, they run as service which lets you connect usually through  (factomd) or  (factom-walletd). You can find out more about running these services here -

For *factomd*, you may be able to connect to "courtesy nodes" instead such as , however these are not guaranteed. I have not tested if there are API limits. For more information:

#### Instantiate the Factom API Adapter

[](#instantiate-the-factom-api-adapter)

Notice we are supplying the full URL to version 2 of the API below.

```
$url = 'http://localhost:8088/v2';
$adapter = new FactomAPIAdapter($url);
```

If you want to interact with the API securely, make sure you're running *factomd* with TLS mode ON - `./factomd -tls true`. You also should pass in the location to your certificate when instantiating the adapter, and change the URL to HTTPS:

```
$url = 'https://localhost:8088/v2';
$certLocation = '~/.factom/m2/factomdAPIpub.cert';
$adapter = new FactomAPIAdapter($url, $certLocation);
```

If you want to interact with the API with a username and password, make sure you're running *factomd* with a username and password defined - `./factomd -rpcuser  -rpcpass `. You can run this with a certificate as well if you wish.

```
$url = 'https://localhost:8088/v2';
$username = 'user';
$password = 'password';
$adapter = new FactomAPIAdapter($url, null, $username, $password);
```

#### Run the API Method With Your Parameters!

[](#run-the-api-method-with-your-parameters)

API methods are outlined here:

```
$method = 'POST';
$result = $adapter->call('transaction', $method, array('hash' => '64251aa63e011f803c883acf2342d784b405afa59e24d9c5506c84f6c91bf18b'));
```

#### Firing GET Requests

[](#firing-get-requests)

Certain API methods use the GET method rather than POST. For example, the 'address' method within *factom-walletd*: . You can run this easily:

```
$method = 'GET';
$result = $adapter->call('address', $method, array('address' => 'FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q'));
```

That's all there is to it. If you are getting cURL issues, it may be because you do not have the PHP cURL lib installed.

Tests
-----

[](#tests)

Sorry! None right now.

Known Issues
------------

[](#known-issues)

- Currently if you are using a secure connection (TLS) and you provide the path to a certificate, we ignore cURL self-signing certificate warnings via setting `CURLOPT_SSL_VERIFYPEER` to `false`.
- The debug API endpoints are not accessible via this wrapper

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Total

2

Last Release

3168d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/425298?v=4)[Corey](/maintainers/1000nettles)[@1000nettles](https://github.com/1000nettles)

---

Top Contributors

[![1000nettles](https://avatars.githubusercontent.com/u/425298?v=4)](https://github.com/1000nettles "1000nettles (5 commits)")

---

Tags

phpapifactomfactomdfactom-walletd

### Embed Badge

![Health badge](/badges/1000nettles-factom-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/1000nettles-factom-api-php/health.svg)](https://phpackages.com/packages/1000nettles-factom-api-php)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

138106.8k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
