Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: InfinityFreeHosting/mofh-client

v0.10.0

25 Jan 16:41
@Grendel7 Grendel7
43e43ef
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

BREAKING CHANGES

  • Officially drop support for PHP 7.1 and 7.2. PHP 7.3 or higher is now required.
  • The getCname function now only expects a domain name to be passed, not a username.
  • If you are extending the message classes yourself, note that the XML parsing was moved out of AbstractResponse into a separate HasXmlPayload trait. Similar traits exist for other types of responses.

DEPRECATIONS

  • If you are passing a custom MOFH API URL to the client, you should omit the xml-api/ suffix.
    • The client now also uses some JSON API functions, and will automatically add the right suffix to the URL for the specific API endpoint used.

NEW FEATURES

  • Add the removeAccount function to remove accounts. You can call this function on accounts which are suspended (except for ADMIN_CLOSE suspensions) to trigger their deletion.
  • Add the listPackages function to list available hosting packages. Returns the upstream package data as-is for now.
  • Add the changePackage function to change the hosting plan of a hosting account.
  • Add the createTicket function to create a support ticket in the control panel on behalf of the user.
  • Add the replyTicket function to add a response to a support ticket on behalf of the user.
Assets 2
Loading
carsaimz reacted with thumbs up emoji
1 person reacted

v0.9.2

16 Nov 20:02
@Grendel7 Grendel7

Choose a tag to compare

Increase timeout for GET requests from 5 seconds to 10 seconds to reduce unintended request cancellations.

Loading

v0.9.1

10 Nov 11:40
@Grendel7 Grendel7

Choose a tag to compare

Fix PHP 8.4 deprecation notice #66

Loading

Add getCname API function

12 Dec 21:13
@Grendel7 Grendel7

Choose a tag to compare

iFastNet added a new API endpoint, getcname, which can be used to verify domains using CNAME records, so domain owners don't need to change nameservers ahead of time.

Loading

Major refactor of entire API client

02 Mar 14:02
@Grendel7 Grendel7
4bd072e
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Choose a tag to compare

A large refactor of the entire API client to make it easier to use and easier to understand.

  • Remove the separate Request classes, the Client just returns the Responses themselves.
  • The Client functions now take their input parameters as function arguments, instead of using an array.
  • Use custom exception classes for Guzzle errors and custom logic errors.
  • Add isAvailable method to AvailabilityResponse, isSuccessful now also returns true if a domain is not found but no error was returned.
  • Add pre-commit with various linters.
  • Completely rewrite the test suite using Guzzle mocks.
Loading

Remove MyOwnFreeHost API port to use trusted cert

16 Jan 10:45
@Grendel7 Grendel7

Choose a tag to compare

Contributors

BastelPichi
Loading

Update Guzzle to version 7

12 Sep 15:52
@Grendel7 Grendel7

Choose a tag to compare

0.7.0
Fix phpunit requirement for older PHP versions
Loading

Add return type to all test setUp functions

18 Mar 11:25
@Grendel7 Grendel7

Choose a tag to compare

Fixes compatibility with PHPUnit 8+

Loading

Remove support for PHP 5.6 and 7.0

18 Mar 11:11
@Grendel7 Grendel7

Choose a tag to compare

PHP 5.6 and 7.0 have been EOL for a while now. PHPUnit 8+ has breaking changes with older PHPUnit versions, so can't be combined effectively.

This release drops support for PHP 5.6 and 7.0 so it can support the latest PHPUnit versions.

Loading

GetDomainUser

12 Feb 16:19
@Grendel7 Grendel7

Choose a tag to compare

This update adds the GetDomainUser request. You can use this endpoint like so:

$request = $client->getDomainUser(['domain' => 'example.com']);
$response = $request->send();
if ($response->isSuccessful()) {
 if ($response->isFound()) {
 echo "This domain is part of account: ".$response->getUsername()."\n;
 echo "The account status is: ".$response->getStatus()."\n;
 echo "The domain's document root is: ".$response->getDocumentRoot()."\n;
 } else {
 echo "The domain could not be found.";
 }
} else {
 echo "Unable to get user: ".$response->getMessage();
}
Loading
Previous 1 3
Previous

AltStyle によって変換されたページ (->オリジナル) /