Skip to content

Commit

Permalink
Merge pull request #11 from xray-labs/develop
Browse files Browse the repository at this point in the history
Merge develop into main
  • Loading branch information
GabsCoding authored Aug 10, 2024
2 parents f4a5211 + a30d1fa commit d5020af
Show file tree
Hide file tree
Showing 97 changed files with 4,035 additions and 728 deletions.
38 changes: 0 additions & 38 deletions .github/CI.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
run: ./vendor/bin/phpstan analyse

- name: Run Pest
run: ./vendor/bin/pest --coverage --min=80 --parallel
run: ./vendor/bin/pest --coverage --min=100 --parallel
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor/
.env
.DS_Store
.DS_Store
index.php
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ composer require xray/azure-storage-php-sdk
Setup Blob Storage

```php
use Xray\AzureStoragePhpSdk\BlobStorage\{BlobStorage, Config};
use Xray\AzureStoragePhpSdk\Http\Request;

$request = new Request(new Config([
'account' => 'your_account_name',
'key' => 'your_account_key',
]));

$blobStorage = new BlobStorage($request);
use Xray\AzureStoragePhpSdk\BlobStorage\BlobStorageClient;
use Xray\AzureStoragePhpSdk\Authentication\MicrosoftEntraId;

$client = BlobStorageClient::create(new MicrosoftEntraId(
account: 'my_account',
directoryId: 'directory_id',
applicationId: 'application_id',
applicationSecret: 'application_secret',
));
```

[Storage Account](docs/StorageAccount.md)
Expand All @@ -40,4 +40,3 @@ This project is licensed under the [MIT License](LICENSE).

- [email protected]
- [email protected]
- [email protected]
62 changes: 62 additions & 0 deletions captainhook.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"commit-msg": {
"enabled": false,
"actions": [
{
"action": "\\CaptainHook\\App\\Hook\\Message\\Action\\Beams",
"options": {
"subjectLength": 50,
"bodyLineLength": 72
}
}
]
},
"pre-push": {
"enabled": true,
"actions": [
{
"action": "./vendor/bin/phpmd src/ text phpmd.xml"
},
{
"action": "./vendor/bin/phpcs --standard=phpcs.xml"
},
{
"action": "./vendor/bin/pint --test"
},
{
"action": "./vendor/bin/phpstan analyse"
},
{
"action": "./vendor/bin/pest --coverage --min=100 --parallel"
}
]
},
"pre-commit": {
"enabled": false,
"actions": []
},
"prepare-commit-msg": {
"enabled": false,
"actions": []
},
"post-commit": {
"enabled": false,
"actions": []
},
"post-merge": {
"enabled": false,
"actions": []
},
"post-checkout": {
"enabled": false,
"actions": []
},
"post-rewrite": {
"enabled": false,
"actions": []
},
"post-change": {
"enabled": false,
"actions": []
}
}
13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xray/azure-storage-php-sdk",
"description": "Integrate with Azure's cloud storage services",
"description": "Azure Storage PHP SDK",
"type": "library",
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -28,12 +28,14 @@
"pestphp/pest": "^2.34",
"symfony/var-dumper": "^7.0",
"phpmd/phpmd": "^2.15",
"squizlabs/php_codesniffer": "^3.10"
"squizlabs/php_codesniffer": "^3.10",
"captainhook/captainhook": "^5.23",
"captainhook/hook-installer": "^1.0",
"mockery/mockery": "^1.6"
},
"authors": [
{ "name": "Silvio Pereira", "email": "[email protected]" },
{ "name": "Gabriel de Ramos", "email": "[email protected]" },
{ "name": "Erlon Sodre", "email": "[email protected]" }
{ "name": "Gabriel de Ramos", "email": "[email protected]" }
],
"autoload": {
"psr-4": {
Expand All @@ -47,7 +49,8 @@
"minimum-stability": "stable",
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
"pestphp/pest-plugin": true,
"captainhook/hook-installer": true
}
}
}
Loading

0 comments on commit d5020af

Please sign in to comment.