what3words / w3w-php-wrapper

PHP wrapper for the what3words API
MIT License
28 stars 13 forks source link

Submit the repo to https://packagist.org/ #4

Closed chrisbarr closed 8 years ago

chrisbarr commented 8 years ago

Should be pretty straightforward to do, it will ask you to add a git hook to the repo. Means that users will be able to do this:

// composer.json
{
  name: "chrisbarr/my-project",
  require: {
    "what3words/w3w-php-wrapper": "~1.0"
  }
}

Then run composer update and the class will be available via the Composer autoloader like so:

<?php
require 'vendor/autoload.php';

$w3w = new what3words('abcdef');

The packagist.org page also tracks and shows download stats for the repo.

vicchi commented 8 years ago

Done; see https://packagist.org/packages/what3words/w3w-php-wrapper

chrisbarr commented 8 years ago

Amazing, thank you!

vicchi commented 8 years ago

@chrisbarr Ask and you shall receive; except where void, prohibited by law or in the rare case I haven't had enough coffee.

chrisbarr commented 8 years ago

:smile: