url
, (*1)
PHP7 URL value object library., (*2)
Prerequisites
Installation
Install via composer
To install url with Composer, run the following command:, (*3)
$ composer require krixon/url
You can see this library on Packagist., (*4)
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:, (*5)
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., (*6)
Build image:, (*7)
$ docker-compose build, (*8)
Install dependencies:, (*9)
$ docker-compose run --rm library composer install, (*10)
Run the tests
$ docker-compose run --rm library composer test, (*11)