2017 © Pedro Peláez
 

library laravel-uuid

A laravel wrapper for the-php-avengers/uuid

image

the-php-avengers/laravel-uuid

A laravel wrapper for the-php-avengers/uuid

  • Monday, July 18, 2016
  • by jkirkby91
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

package-skeleton

Build Status Test Coverage Code Climate, (*1)

A php PSR-0/4 compliant skeleton package, pre-configured with phpunit + coverage, (*2)

Comes pre configured with phpunit and travis ci out the box, (*3)

Install

$ git clone git@github.com:jkirkby91/package-skeleton.git .
$ rm -Rf .git
$ rm composer.json
$ mv composer.json.dist composer.json
$ git init

Next you need to rename your package namespaces lib/AppNameSpace to lib/YourApp lib/AppNameSpace/AppClassName to lib/YourApp/YourClassName, (*4)

Then the same with the test directory. These namespaces need to match but appending 'Test' to the name, (*5)

Tests/AppNameSpaceTest to Tests/YourAppTest
Tests/AppNameSpace/AppClassNameTest to Tests/YourApp/YourClassNameTest

PHPunit tests

To run php unit tests, (*6)

$ phpunit

To run php unit tests with coverage, (*7)

$ phpunit --coverage-html coverage

Composer Scripts

To help with mundane tasks, there are some pre-configured composer scripts to speed up repetative tasks, (*8)

$ composer gaa

runs the $ git add --all command, (*9)

$ composer pu

runs a standard phpunit test, (*10)

$ composer pu-c

runs a phpunit test with coverage, (*11)

and you will see the outcome of your tests, (*12)

Composer setup

Dont forget to setup your composer file other wise installs wont work, (*13)

{
  "name": "AUTHOR/PACKAGE-NAME",
  "type": "library",
  "description": "",
  "keywords": [ "" ],
  "homepage": "",
  "license": "MIT",
  "authors": [
    { "name": "", "email": "" }
  ],

Email: jkirkby91 {at} gmail {dot} com Twitter: @jkirkby91, (*14)

@TODO

add a gulp/grunt script to server a local webserver showing coverage dashboard, (*15)

add bower/npm/grunt scaffolds

Laravel-Package-Skeleton

Skeleton Boilerplate for Laravel packages/service providers

Laravel-UUID

Laravel Wrapper for the UUID Library, (*16)

The Versions