2017 © Pedro Peláez
 

library testpackage

PHP packaging test

image

mauriciovander/testpackage

PHP packaging test

  • Sunday, August 23, 2015
  • by mauriciovander
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TestComponents

The intention of this repository is to test composer package management and set up a basic library structure for new projects, (*1)


Instalation

From composer packagist

composer require mauriciovander/testpackage dev-master, (*2)

From Git

  1. clone this repository with, (*3)

    git clone https://github.com/mauriciovander/testpackage.git, (*4)

  2. cd into testpackage, (*5)

  3. install dependencies, (*6)

    composer install, (*7)

  4. run index.php as a server or create a virtualhost in your Apache/Nginx server pointing the DocumentRoot to the public folder, (*8)

    php -S 127.0.0.1:8888 public/index.php, (*9)

  5. open http://localhost on a browser, (*10)

  6. check console logs to confirm monolog is working properly
  7. run tests to confirm phpunit is working properly, (*11)

    phpunit tests, (*12)


Start writing your own code

If new namespaces are to be used (besides TestComponents), be sure to link Namespace to path in composer.json PSR-4 section for proper autoloading, (*13)

run composer dump-autoload to regenerate PSR4 autoloader, (*14)

enjoy..., (*15)

The Versions