krixon / url
URL value objects
Installs: 23 716
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 2
Open Issues: 1
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5.0
- satooshi/php-coveralls: ^1.0
README
PHP7 URL value object library.
Prerequisites
- PHP 5.6+
Installation
Install via composer
To install url with Composer, run the following command:
$ composer require krixon/url
You can see this library on Packagist.
Install from source
# HTTP $ git clone https://github.com/krixon/url.git # SSH $ git clone git@github.com:krixon/url.git
Development
Build Image and Run Container
Note: If your host machine's user does not have an ID of 1000, run the following command from the project root directory:
echo "DEV_UID=$(id -u)" > .env
This ensures that any files created in mounted directories have the correct permissions. It will also cause the host user's SSH keys and Composer cache to be used inside the container.
Build image:
$ docker-compose build
Install dependencies:
$ docker-compose run --rm library composer install
Run the tests
$ docker-compose run --rm library composer test