Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP Action
uses: shivammathur/setup-php@2.26.0
with:
php-version: 8.4
php-version: 8.5
extensions: dom
coverage: xdebug

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ PHP library to create a ULID unique identifier value

### Installation

[Release 9.0.0](https://github.com/not-empty/ulid-php-lib/releases/tag/9.0.0) Requires [PHP](https://php.net) 8.5

[Release 8.0.0](https://github.com/not-empty/ulid-php-lib/releases/tag/8.0.0) Requires [PHP](https://php.net) 8.4

[Release 7.0.0](https://github.com/not-empty/ulid-php-lib/releases/tag/7.0.0) Requires [PHP](https://php.net) 8.3
Expand Down Expand Up @@ -94,12 +96,12 @@ echo $randomnessFromUlid;
if you want an environment to run or test it, you can build and install dependences like this

```sh
docker build --build-arg PHP_VERSION=8.4-cli -t not-empty/ulid-php-lib:php84 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=8.5-cli -t not-empty/ulid-php-lib:php85 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/ulid-php-lib:php84 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/ulid-php-lib:php85 bash
```

Verify if all dependencies is installed
Expand All @@ -125,17 +127,17 @@ To ensure that the entire project is fine:
First you need to building a correct environment to install all dependences

```sh
docker build --build-arg PHP_VERSION=8.4-cli -t not-empty/ulid-php-lib:php84 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=8.5-cli -t not-empty/ulid-php-lib:php85 -f contrib/Dockerfile .
```

Access the container
```sh
docker run --name ulid-php-lib -v ${PWD}/:/var/www/html -it not-empty/ulid-php-lib:php84 bash
docker run --name ulid-php-lib -v ${PWD}/:/var/www/html -it not-empty/ulid-php-lib:php85 bash
```

Install all dependences
```sh
composer install --dev --prefer-dist
composer install --prefer-dist
```

Run all validations
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "not-empty/ulid-php-lib",
"description": "PHP Universally Unique Lexicographically Sortable Identifier (ULID)",
"version": "8.0.1",
"version": "9.0.0",
"type": "library",
"license": "GPL-3.0-only",
"require": {
"php": "^8.4"
"php": "^8.5"
},
"require-dev": {
"phpunit/phpunit": "^12.4",
Expand Down
Loading
Loading