-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from xray-labs/develop
Merge develop into main
- Loading branch information
Showing
97 changed files
with
4,035 additions
and
728 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
vendor/ | ||
.env | ||
.DS_Store | ||
.DS_Store | ||
index.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -40,4 +40,3 @@ This project is licensed under the [MIT License](LICENSE). | |
|
||
- [email protected] | ||
- [email protected] | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": { | ||
|
@@ -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": { | ||
|
@@ -47,7 +49,8 @@ | |
"minimum-stability": "stable", | ||
"config": { | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
"pestphp/pest-plugin": true, | ||
"captainhook/hook-installer": true | ||
} | ||
} | ||
} |
Oops, something went wrong.