Download the PHP package spits-online/laravel-openprovider-api without Composer

On this page you can find all versions of the php package spits-online/laravel-openprovider-api. 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 laravel-openprovider-api

openprovider.com API Support for Laravel

  1. Introduction
    • Why This Package?
  2. Installation
    • Prerequisites
    • Step-by-Step Installation
  3. Configuration
  4. Usage
    • 1. Contact Management
      • Retrieve Contacts
      • Retrieve a Single Contact
      • Create or Update Contacts
      • Delete Contacts
      • Contact Model Overview
    • 2. Sending Notifications
      • Supported Notification Channels
      • Example: Sending SMS Notifications
  5. Exception Handling
  6. Contributing
  7. License
  8. Contact

Overview

The Laravel Openprovider package simplifies integrating the powerful Openprovider API into your Laravel applications. It provides a user-friendly way to manage Domains and DNS Zone records. This package is designed to make communication between Laravel and Openprovider seamless and efficient.

Installation

Prerequisites

Before installing this package, ensure your system meets the following requirements:

Step-by-Step Installation

  1. Add the package to your Laravel project using Composer:

  2. Once installed, the package will automatically register the LarvelOpenproviderApiServiceProvider using Laravel's package auto-discovery.
  3. Run the following command to publish the package configuration:

    This will create a config/openprovider-api.php file in your application.

Configuration

OPENPROVIDER_USERNAME="{{username}}" OPENPROVIDER_PASSWORD="{{password}}"

The config/openprovider-api.php file contains all configurable options, including:

For detailed configuration options, refer to the comments within the config/openprovider-api.php file.

Usage

1. Domain management

This package provides functionality for managing domains via the Openprovider API. Below are the key actions you can perform with the DomainService.

Retrieve a list of domains

You can retrieve a list of domain using the getDomains() method. To be able to retrieve the domains, make sure you have specified the credentials in your .env file.

Parameters:

Retrieving a single domain

You can also retrieve a single domain using the getDomain() method. This allows you to get only one domain by specifying its id.

Parameters:

Update domain

You can update a domain by passing the id and data array to the updateDomain method.\ This method requires the domain's identifier.

Parameters:

2. Managing DNS zones

This package supports managing DNS zones.\ We made specific controllers for the Dns zone records as its our own main use case.\ But the DnsService class can be used for all functions related to DNS zones.

Retrieving DNS zone records

You can get the records by using the show function in DnsRecordsController.

Parameters:

Creating / Updating / Removing records

We chose too split these in separate controller functions.\ But all can be done in 1 operation by calling the updateDnsZone function in Spits\LaravelOpenproviderApi\Services\DnsService

Exporting records

We created the export function in Spits\LaravelOpenproviderApi\Http\Controllers\DnsRecordsController to export Dns zone records to an .xlsx file.

Contributing

Please submit ideas, issues and pull requests to the GitHub repository.

License

This package is open-sourced software licensed under the MIT license.

Contact

For any inquiries or support, please contact Spits.


All versions of laravel-openprovider-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3
spatie/laravel-package-tools Version ^1.16
maatwebsite/excel Version ^3.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 spits-online/laravel-openprovider-api contains the following files

Loading the files please wait ....