PHPackages                             adrianmejias/factom-api - 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. adrianmejias/factom-api

AbandonedArchivedLibrary[API Development](/categories/api)

adrianmejias/factom-api
=======================

A simple Laravel service provider for the Factom API.

v1.4(8y ago)011MITPHPPHP ~7.0

Since Sep 20Pushed 8y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Factom API for Laravel
======================

[](#factom-api-for-laravel)

[![Latest Version](https://camo.githubusercontent.com/a1f66941b5861d26b84238423e950404c573927989bcd61bbab4a214283dccb1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f61647269616e6d656a6961732f666163746f6d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://github.com/adrianmejias/factom-api/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/95df82d1aa74b52a6ca458773c20462bc9a83b1ee8d7eb84b5f6e32961bce75b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61647269616e6d656a6961732f666163746f6d2d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/adrianmejias/factom-api)[![Quality Score](https://camo.githubusercontent.com/6e057ba38a566cff449a68902f46755350d5d0098847dbcb6709f7171a3fb0f6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f61647269616e6d656a6961732f666163746f6d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/adrianmejias/factom-api)[![StyleCI](https://camo.githubusercontent.com/609f56b9a1144b1fba531e7b0614e1f4a80e988a424ce0c706440da0033db371/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130343233373631302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/104237610)[![Total Downloads](https://camo.githubusercontent.com/60a7e05a99680505effabc9d3203d69efa1b9cd21c258304289d3befa2e61711/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61647269616e6d656a6961732f666163746f6d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adrianmejias/factom-api)

This package provides a simple service provider for the Factom API for use with the Laravel Framework.

**Factom API documentation:**

`Note: This package is under development and should not be used for production environments.`

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

[](#installation)

You can install this package via composer using:

```
composer require adrianmejias/factom-api
```

You must also install this service provider in `conifg/app.php`.

```
'providers' => [
  ...

  AdrianMejias\FactomApi\FactomApiServiceProvider::class,

  ...
```

The package will automatically register itself. If not, then add the alias in `config/app.php`.

```
'aliases' => [
  ...

  'FactomApi' => AdrianMejias\FactomApi\Facades\FactomApi::class,
  'FactomWalletApi' => AdrianMejias\FactomApi\Facades\FactomWalletApi::class,
  'FactomDebugApi' => AdrianMejias\FactomApi\Facades\FactomDebugApi::class,

  ...
```

To publish the config file to `app/config/factom-api.php`

```
php artisan vendor:publish --provider="AdrianMejias\FactomApi\FactomApiServiceProvider"
```

This will publish a file `factom-api.php` in your config directory with teh following content:

```
