Download the PHP package shockmediabv/myshock-php-client without Composer

On this page you can find all versions of the php package shockmediabv/myshock-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package myshock-php-client

My Shock Media PHP API Client (BETA)

Welcome to the My Shock Media PHP API Client! This project provides a PHP client library for interacting with the My Shock Media API. It's generated from the OpenRPC specification and allows you to perform requests on behalf of users to manage domains, retrieve server information, and more.

Note: This project is currently in BETA. We do not guarantee compatibility with future versions, and breaking changes may occur.

Installation

To install this library, it is recommended to use Composer. You can include the package in your composer.json file as follows:

Then, run the following command to install the package:

Alternatively, you can install the package directly using the command:

Basic usage

Here's a simple example to get you started with using the My Shock Media PHP API Client:

Explanation

  1. HTTP Client Setup:
    • We start by creating a SimpleHttpClient, which is the core client used for sending requests to the API. This client requires two parameters:
      • API URL: The base URL of the My Shock Media API.
      • Authorization Header: The Authorization header string, which typically includes the authentication scheme and the API key or credentials.
    • Optionally, you can supply your own HTTP Client implementation, for example if you want to use cURL for HTTP requests.
  2. Domain Client:
    • We then create a DomainClient, which allows us to interact with the domain management API endpoints.
    • The client library provides ***Client objects for all API endpoints.
  3. Example call:
    • In this example, we use the listDomains method to retrieve the first 10 domains owned by the user, sorted by name in ascending order.

Authentication Schemes Supported

Creating API keys

To create an API key:

  1. Log in to your My Shock Media account.
  2. Navigate to API Tokens and click on 'Create new token' under 'API tokens'.
  3. Fill in the form to choose a name, expiry date and permissions for the token.
  4. Click on 'Create new token' to submit the form. Make sure to save the created token, because it is only shown once.

Documentation

Comprehensive documentation for the My Shock Media API and the PHP client library is available on the API Documentation page within your My Shock Media account (login required).

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Support

If you encounter any issues or have questions, feel free to open a support ticket in My Shock Media or contact us via email at [email protected].


All versions of myshock-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shockmediabv/myshock-php-client contains the following files

Loading the files please wait ....