PHPackages                             greenreader9/mofh-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. greenreader9/mofh-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

greenreader9/mofh-client
========================

A WHM API client for MyOwnFreeHost in PHP

v1.1(1y ago)15Apache-2.0PHPPHP &gt;=7.1

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/greenreader9/mofh-client)[ Packagist](https://packagist.org/packages/greenreader9/mofh-client)[ RSS](/packages/greenreader9-mofh-client/feed)WikiDiscussions main Synced yesterday

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

MyOwnFreeHost API Client
========================

[](#myownfreehost-api-client)

An API client to use the free hosting system from [MyOwnFreeHost](https://myownfreehost.net). Based off the API wrapper from InfinityFree

**IMPORTANT: THIS LIBRARY IS AIMED AT EXPERIENCED PHP DEVELOPERS. Experience with object-oriented PHP and Composer is required. If you can't use oo-PHP and Composer, don't bother with this library.**

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

[](#installation)

This package is best installed through Composer:

```
composer require Greenreader9/mofh-client
```

Usage
-----

[](#usage)

Before you can get started, you need to get the API credentials from MyOwnFreeHost. Login to the [reseller panel](https://panel.myownfreehost.net), go to API -&gt; Setup WHM API -&gt; select the domain you want to configure. Copy the API Username and API password and set your own IP address as the Allowed IP Address (the IP address of your computer, server, or wherever you want to use this API client).

### Available Methods

[](#available-methods)

See client file

### Example

[](#example)

The example below may not work due to modifications to the client. Please see the client file, or use the mofh-wrapper from the InfinityFreeHosting github profile

```
use \Greenreader9\MofhClient\Client;

// Create a new API client with your API credentials.
$client = new Client("", "");

// Create a new hosting account.
$createResponse = $client->createAccount(
    'abcd1234', // A unique, 8 character identifier of the account. Primarily used as internal identifier.
    'password123', // A password to login to the control panel, FTP and databases.
    'user@example.com', // The email address of the user.
    'userdomain.example.com', // Initial domain of the account. Can be a subdomain or a custom domain.
    'my_plan', // The hosting plan name at MyOwnFreeHost.
);

// Check whether the request was successful.
if ($createResponse->isSuccessful()) {
    echo "Created account with username: ".$createResponse->getVpUsername();
} else {
   echo 'Failed to create account: ' . $createResponse->getMessage();
   die();
}
```

License
-------

[](#license)

Copyright 2023 Greenreader9/Hans Adema/InfinityFree

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~450 days

Total

2

Last Release

602d ago

### Community

Maintainers

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

---

Top Contributors

[![greenreader9](https://avatars.githubusercontent.com/u/75644395?v=4)](https://github.com/greenreader9 "greenreader9 (11 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/greenreader9-mofh-client/health.svg)

```
[![Health](https://phpackages.com/badges/greenreader9-mofh-client/health.svg)](https://phpackages.com/packages/greenreader9-mofh-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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