Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hopkins committed Jun 29, 2014
0 parents commit d6c77c2
Show file tree
Hide file tree
Showing 7 changed files with 2,372 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/vendor
composer.phar
composer.lock
.DS_Store
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm

before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev

script: phpunit
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "appitventures/phpgmaps",
"description": "",
"authors": [
{
"name": "Appit Ventures",
"email": "michael@appitventures.com"
}
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "4.2.*"
},
"autoload": {
"psr-0": {
"Appitventures\\Phpgmaps\\": "src/"
}
},
"minimum-stability": "stable"
}
18 changes: 18 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
14 changes: 14 additions & 0 deletions src/Appitventures/Phpgmaps/Facades/Phpgmaps.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php namespace Appitventures\Phpgmaps\Facades;

use Illuminate\Support\Facades\Facade;

class Phpgmaps extends Facade {

/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor() { return 'phpgmaps'; }

}
2,250 changes: 2,250 additions & 0 deletions src/Appitventures/Phpgmaps/Phpgmaps.php

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions src/Appitventures/Phpgmaps/PhpgmapsServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php namespace Appitventures\Phpgmaps;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;

class PhpgmapsServiceProvider extends ServiceProvider {

/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;

/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
$this->package('appitventures/phpgmaps');
}

/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->booting(function()
{
$loader = AliasLoader::getInstance();
$loader->alias('Gmaps', 'Appitventures\Phpgmaps\Facades\Phpgmaps');
});
$this->app['phpgmaps'] = $this->app->share(function($app){
return new Phpgmaps();
});
}

/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return array('phpgmaps');
}

}

0 comments on commit d6c77c2

Please sign in to comment.