Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop into main #11

Merged
merged 42 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
35d7485
enhance file management
GabsCoding Jul 27, 2024
8414554
update version to be string
GabsCoding Jul 27, 2024
3153e10
adjust file tests
GabsCoding Jul 27, 2024
0daeca3
add new helpers functions
GabsCoding Jul 27, 2024
9b630c7
add response streaming
GabsCoding Jul 27, 2024
eecb702
add tests for file
GabsCoding Jul 27, 2024
68f20d7
create function to validate protocol
GabsCoding Jul 27, 2024
7302954
update request and blob client
GabsCoding Jul 27, 2024
7645141
Create new tests for blob storage
sjspereira Jul 27, 2024
908a2ff
standardize request auth
GabsCoding Jul 27, 2024
cd1cd7a
create microsoft entra id tests
GabsCoding Jul 27, 2024
a7540ab
remove lonely brackets
GabsCoding Jul 27, 2024
e5d05f1
Merge pull request #9 from xray-labs/main
GabsCoding Jul 27, 2024
0e6a9bf
Merge branch 'develop' into enhancement/create-tests
sjspereira Jul 27, 2024
2c19e8c
Merge pull request #8 from xray-labs/enhancement/create-tests
GabsCoding Jul 27, 2024
74dea6c
Merge branch 'develop' into enhancement/blob-storage-usage
GabsCoding Jul 27, 2024
89e07d2
fix phpstan issues
GabsCoding Jul 27, 2024
0c0dae1
fix phpmd
GabsCoding Jul 27, 2024
0619093
Merge pull request #10 from xray-labs/enhancement/blob-storage-usage
sjspereira Jul 27, 2024
854d7a6
update packages
GabsCoding Aug 3, 2024
a05ce0a
adjust request resetting options
GabsCoding Aug 3, 2024
2311cb0
install captainhook
GabsCoding Aug 3, 2024
b2c1ef2
add min coverage to hooks
GabsCoding Aug 3, 2024
00f6897
Merge pull request #14 from xray-labs/bugfix/#13-error-uploading-more…
sjspereira Aug 3, 2024
9f84cb7
create current http date trait
GabsCoding Aug 3, 2024
c95f75d
start create user delegation key signature
GabsCoding Aug 3, 2024
b640653
fix phpstan
GabsCoding Aug 3, 2024
4635951
fix tests
GabsCoding Aug 3, 2024
af767ee
create user delegation sas
GabsCoding Aug 4, 2024
64ca4d2
create temporary url
GabsCoding Aug 4, 2024
73c58bb
create sas tests
GabsCoding Aug 4, 2024
ae7be63
Refactor and Implement Container app
sjspereira Aug 4, 2024
e32f26f
enhance application container
GabsCoding Aug 10, 2024
a95cad2
add new tests
GabsCoding Aug 10, 2024
068b36c
add azure_app to most classes
GabsCoding Aug 10, 2024
a33b798
update packages
GabsCoding Aug 10, 2024
3243979
create remaining tests
GabsCoding Aug 10, 2024
5d678ff
update coverage
GabsCoding Aug 10, 2024
e94db22
fix phpstan issues
GabsCoding Aug 10, 2024
408e1cf
Merge pull request #15 from xray-labs/feature/create-blob-temporary-url
GabsCoding Aug 10, 2024
3d47307
Merge branch 'develop' into enhancement/create-new-tests
GabsCoding Aug 10, 2024
a30d1fa
Merge pull request #16 from xray-labs/enhancement/create-new-tests
GabsCoding Aug 10, 2024
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
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).

- sjpereira2000@gmail.com
- gabrielramos791@gmail.com
- erlonsodre@gmail.com
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": "sjpereira2000@gmail.com" },
{ "name": "Gabriel de Ramos", "email": "gabrielramos791@gmail.com" },
{ "name": "Erlon Sodre", "email": "erlonsodre@gmail.com" }
{ "name": "Gabriel de Ramos", "email": "gabrielramos791@gmail.com" }
],
"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
Loading