Skip to content

Commit

Permalink
version php73
Browse files Browse the repository at this point in the history
  • Loading branch information
leodisarli committed Oct 27, 2023
1 parent cb751bc commit 81f18e7
Show file tree
Hide file tree
Showing 4 changed files with 577 additions and 241 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PHP library to connect to and use Elasticsearch in a simple way.

### Installation

[Release 3.0.0](https://github.com/not-empty/simple-elasticsearch-php-lib/releases/tag/3.0.0) Requires [PHP](https://php.net) 7.3

[Release 2.0.0](https://github.com/not-empty/simple-elasticsearch-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2

[Release 1.0.0](https://github.com/not-empty/simple-elasticsearch-php-lib/releases/tag/1.0.0) Requires [PHP](https://php.net) 7.1
Expand Down Expand Up @@ -330,12 +332,12 @@ var_dump($aggregateDocuments);
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=7.2.33-cli -t not-empty/simple-elasticsearch-php-lib:php72 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.3.33-cli -t not-empty/simple-elasticsearch-php-lib:php73 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/simple-elasticsearch-php-lib:php72 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/simple-elasticsearch-php-lib:php73 bash
```

Verify if all dependencies is installed
Expand All @@ -361,12 +363,12 @@ 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=7.2.33-cli -t not-empty/simple-elasticsearch-php-lib:php72 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.3.33-cli -t not-empty/simple-elasticsearch-php-lib:php73 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/simple-elasticsearch-php-lib:php72 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/simple-elasticsearch-php-lib:php73 bash
```

Install all dependences
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "not-empty/simple-elasticsearch-php-lib",
"description": "PHP library to connect to and use Elasticsearch",
"version": "2.0.0",
"version": "3.0.0",
"type": "library",
"license": "GPL-3.0-only",
"require": {
"php": "^7.2",
"php": "^7.3",
"guzzlehttp/guzzle": "^7.8"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^9.6",
"mockery/mockery": "^1.6",
"squizlabs/php_codesniffer": "^3.7",
"phpmd/phpmd": "^2.14"
},
Expand Down

0 comments on commit 81f18e7

Please sign in to comment.