2017 © Pedro Peláez
 

library laravel-versio

Laravel 5 versio package

image

laravel-versio/laravel-versio

Laravel 5 versio package

  • Thursday, September 14, 2017
  • by Cannonb4ll
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

Laravel Versio

Laravel 5 package for communicating with the API from versio.nl, (*1)

Installation

You can install the package through Composer., (*2)

composer require laravel-versio/laravel-versio

You must install this service provider., (*3)

// config/app.php
'providers' => [
    LaravelVersio\ServiceProvider::class,
];

Then publish the config and migration file of the package using artisan., (*4)

php artisan vendor:publish --provider="LaravelVersio\ServiceProvider"

And adjust config file (config/versio.php) with your desired settings., (*5)

Usage

All that is left to do is to define 3 ENV configuration variables., (*6)

VERSIO_EMAIL=
VERSIO_PASSWORD=
VERSIO_TEST=

Next you can use it like this:, (*7)

$versio = new LaravelVersio;

$versio will now have the following modules available:, (*8)

->domains()
    ->lists() // overview of all domains
    ->get($domain) // domain info
    ->getDnsRecords($domain) // domain dns records
    ->register($domain, (int) $contactId, (int) $years, array $nameservers) // register domain
    ->renew($domain, (int) $years) // renew a domain
    ->update($domain, $data) // update a domain
    ->available($domain) // check if a domain is available
    ->setDnsManagement($domain) // set domain on DNS management
    ->setNameServerManagement($domain) // set domain on nameserver management
->contacts()
    ->get((int) $contactId) // get a contact
    ->create(array $data) // create a contact
    ->delete((int) $contactId) // delete a contact
    ->lists() // overview of all contacts
->tlds()
    ->prices() // overview for prices
    ->info($tld) // tld info
->dnsTemplate()    
    ->lists() // overview of all dns templates
    ->get($dnsTemplateId) // get template info
    ->delete($dnsTemplateId) // delete template
    ->update($dnsTemplateId, array $data) // update a template
    ->create(array $data) // create a template

Example:

$versio = new Versio;

$domain = $versio->domains()->get('google.com');

// $domain contains data now

Another example:

$contact = (new Versio)->contacts()->get(55);

// $contact contains contact data now

You will have to get the API documentation from VERSIO to see what you can fill in the arrays: https://www.versio.nl/RESTapidoc/, (*9)

License

The laravel versio package is open source software licensed under the license MIT, (*10)

The Versions

14/09 2017

dev-master

9999999-dev

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

14/09 2017

1.13.1

1.13.1.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

16/08 2017

1.13

1.13.0.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

30/06 2017

1.12

1.12.0.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

09/06 2017

1.11

1.11.0.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

09/06 2017

1.1

1.1.0.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

09/06 2017

1.0.5

1.0.5.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error

04/06 2017

1.0

1.0.0.0

Laravel 5 versio package

  Sources   Download

MIT

The Requires

 

laravel log error