PHPackages                             sagleft/mfcoin-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. sagleft/mfcoin-php

ActiveLibrary[API Development](/categories/api)

sagleft/mfcoin-php
==================

PHP library for MFCoin API

1.0.1(6y ago)018MITPHPPHP ^7.0

Since Mar 11Pushed 4y agoCompare

[ Source](https://github.com/Sagleft/mfcoin-php)[ Packagist](https://packagist.org/packages/sagleft/mfcoin-php)[ Fund](https://tidelift.com/funding/github/packagist/Sagleft/mfcoin-php)[ RSS](/packages/sagleft-mfcoin-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

mfcoin-php
==========

[](#mfcoin-php)

To the horror, a simple library for sending requests to the MFCoin node via JSON RPC in terrible and outdated PHP (you need more jokes about PHP, write me, add to readme)

Have fun
--------

[](#have-fun)

1. How to install

    ```
    composer require sagleft/mfcoin-php
    ```
2. Initialize MFCoin connection/object:

    ```
    $mfcoin = new MFCoin\Client('username','password');
    ```

    Optionally, you can specify a host, port. Default is HTTP on localhost port 22824.

    ```
    $mfcoin = new MFCoin\Client('username','password','localhost','22824');
    ```

    If you wish to make an SSL connection you can set an optional CA certificate or leave blank

    ```
    $mfcoin->setSSL('/full/path/to/mycertificate.cert');
    ```
3. Make calls to mfcoind as methods for your object. Examples:

    ```
    $mfcoin->getinfo();

    $mfcoin->getrawtransaction('7ce62a44093ee359d86a1707ecf362925afcc918ba38c837dfa42f89572a6816',1);

    $mfcoin->getblock('fbbb5b7f32e562387dc377c24c99778ced80ca726a3cd4bb3bcb13b652f3f6e1');
    ```
4. You can look at other methods in the MFCoin wallet by typing the "help" command or use:

    ```
    print_r($mfcoin->help());
    ```

Additional Info
---------------

[](#additional-info)

- When a call fails for any reason, it will return false and put the error message in `$mfcoin->error`
- The HTTP status code can be found in $mfcoin-&gt;status and will either be a valid HTTP status code or will be 0 if cURL was unable to connect.
- The full response (not usually needed) is stored in `$mfcoin->response` while the raw JSON is stored in `$mfcoin->raw_response`

---

[![image](https://github.com/Sagleft/Sagleft/raw/master/image.png)](https://github.com/Sagleft/Sagleft/raw/master/image.png)

### 🌐 [Telegram канал](https://t.me/+VIvd8j6xvm9iMzhi)

[](#globe_with_meridians-telegram-канал)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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

Unknown

Total

1

Last Release

2257d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33496565?v=4)[Sagleft](/maintainers/Sagleft)[@Sagleft](https://github.com/Sagleft)

---

Top Contributors

[![Sagleft](https://avatars.githubusercontent.com/u/33496565?v=4)](https://github.com/Sagleft "Sagleft (12 commits)")[![aceat64](https://avatars.githubusercontent.com/u/348675?v=4)](https://github.com/aceat64 "aceat64 (6 commits)")[![axelay](https://avatars.githubusercontent.com/u/774963?v=4)](https://github.com/axelay "axelay (2 commits)")[![wqeqwew](https://avatars.githubusercontent.com/u/26476199?v=4)](https://github.com/wqeqwew "wqeqwew (1 commits)")

---

Tags

phplibemercoinmfcoin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sagleft-mfcoin-php/health.svg)

```
[![Health](https://phpackages.com/badges/sagleft-mfcoin-php/health.svg)](https://phpackages.com/packages/sagleft-mfcoin-php)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

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