mauriciovander / testpackage
PHP packaging test
dev-master
2015-08-23 18:21 UTC
Requires
- php: >=5.5.0
- filp/whoops: ^1.1
- guzzlehttp/guzzle: 6.0.2
- monolog/monolog: 1.16.0
- phpunit/phpunit: 4.8.5
- swiftmailer/swiftmailer: v5.4.1
This package is not auto-updated.
Last update: 2025-04-30 12:24:05 UTC
README
The intention of this repository is to test composer package management and set up a basic library structure for new projects
Instalation
From composer packagist
composer require mauriciovander/testpackage dev-master
From Git
- clone this repository with
git clone https://github.com/mauriciovander/testpackage.git
- cd into testpackage
- install dependencies
composer install
- run index.php as a server or create a virtualhost in your Apache/Nginx server pointing the DocumentRoot to the public folder
php -S 127.0.0.1:8888 public/index.php
- open http://localhost on a browser
- check console logs to confirm monolog is working properly
- run tests to confirm phpunit is working properly
phpunit tests
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
run composer dump-autoload
to regenerate PSR4 autoloader
enjoy...