Skip to content

Commit

Permalink
Verbose cURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Jan 7, 2024
1 parent e6da38f commit 6afa620
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## 9.2.0
##### 10 january 2024
- __Driver Core__
- Driver is co-maintained by @Geolim4 and @srjlewis
- `Couchbasev4` is now an extension separated from the main Phpfastcache repository.
- `Couchbasev4` requires Couchbase client `Couchbase/Couchbase` 4.x and PHP Extension `Couchbase` 4.x
- `Couchbasev4` may requires `posix`/`pcntl` extension if you are manipulating processes and need to fix an [internal Couchbase bug](README.md#-this-extension-optionally-requires-).
- Driver is maintained by @Geolim4
- `Arangodb` is now an extension separated from the main Phpfastcache repository.
24 changes: 4 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Contributing [![PHP Tests](https://github.com/PHPSocialNetwork/couchbasev4-extension/actions/workflows/php.yml/badge.svg)](https://github.com/PHPSocialNetwork/couchbasev4-extension/actions/workflows/php.yml)
## Contributing [![PHP Tests](https://github.com/PHPSocialNetwork/arangodb-extension/actions/workflows/php.yml/badge.svg)](https://github.com/PHPSocialNetwork/arangodb-extension/actions/workflows/php.yml)
Merge requests are welcome but will require the tests plus the quality tools to pass:

_(Commands must be run from the repository root)_
Expand All @@ -9,7 +9,7 @@ composer run-script quality
composer run-script tests

# In case you want to fix the code style automatically:
./vendor/bin/phpcbf lib/ --report=summary
composer run-script phpcbf
```

## Support & Security
Expand All @@ -19,24 +19,8 @@ Support for this extension must be posted to the main [Phpfastcache repository](
## Composer installation:

```php
composer install phpfastcache/couchbasev4-extension
composer install phpfastcache/arangodb-extension
```

#### ⚠️ This extension requires:

1️⃣ The PHP `Couchbase` extension 4.x at least

2️⃣ The composer `Couchbase/Couchbase` library 4.x at least

#### ⚠️ This extension optionally requires:
1️⃣ The PHP `Posix` to fix a known Couchbase Extension bug [PCBC-886](https://issues.couchbase.com/projects/PCBC/issues/PCBC-886).
Once this bug has been fixed the dependency suggestion will be removed.
If your application wants to fork the processes using `pcntl_fork()` the `Posix` extension is needed, and you want the fix to be enabled, set up the config like this:
```php
$config = (new CouchbaseConfig())->setDoForkDetection(true);
```

2️⃣ Also the PHP `Pcntl` if you plan to contribute to this project and run the tests before pushing your Merge Request.



1️ The composer `triagens/arangodb` library 3.8 at least.
8 changes: 4 additions & 4 deletions tests/Scripts/install_arangodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

mkdir -p arangodb
cd arangodb
export ARANGODB_ROOT_PASSWD=password
export ARANGODB_ROOT_PASSWD='password'

curl -OL https://download.arangodb.com/arangodb310/DEBIAN/Release.key
sudo apt-key add - < Release.key
Expand All @@ -25,7 +25,7 @@ echo "#################################"
printf "\n"

echo "1/3 - Creating 'phpfastcache' user:"
curl -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/user <<EOF
curl -v -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/user <<EOF
{
"user" : "phpfastcache",
"passwd" : "travis"
Expand All @@ -34,7 +34,7 @@ EOF
printf "\n\n"

echo "2/3 - Creating 'phpfastcache' database:"
curl -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/database <<EOF
curl -v -X POST -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/database <<EOF
{
"name" : "phpfastcache",
"options" : {
Expand All @@ -46,7 +46,7 @@ EOF
printf "\n\n"

echo "3/3 - Giving 'phpfastcache' user access to 'phpfastcache' database:"
curl -X PUT -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/user/phpfastcache/database/phpfastcache <<EOF
curl -v -X PUT -u root:$ARANGODB_ROOT_PASSWD --header 'accept: application/json' --data-binary @- --dump - http://127.0.0.1:8529/_api/user/phpfastcache/database/phpfastcache <<EOF
{
"grant" : "rw"
}
Expand Down

0 comments on commit 6afa620

Please sign in to comment.