Skip to content

Commit 54d41f3

Browse files
initial commit
0 parents  commit 54d41f3

File tree

10 files changed

+2279
-0
lines changed

10 files changed

+2279
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Brock Roadhouse
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# An Azure Key Vault package for Laravel
2+
This package provides
3+
4+
# Installation
5+
Add repository to `composer.json`
6+
```json
7+
"repositories": [
8+
{
9+
"type": "vcs",
10+
"url": "[email protected]:PDERAS/azure-key-vault.git"
11+
},
12+
]
13+
```
14+
15+
### Install via composer
16+
```sh
17+
composer require pderas/azure-key-vault
18+
```
19+
20+
### Publish config file
21+
```sh
22+
php artisan vendor:publish --provider="Pderas\AzureKeyVault\AzureKeyVaultServiceProvider"
23+
```
24+
25+
### Azure CLI
26+
If using Azure CLI, you must install it by running the following command
27+
```sh
28+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
29+
```
30+
31+
Then, authenticate yourself with Azure
32+
```sh
33+
az login
34+
```
35+
36+
# Usage
37+
```php
38+
use Pderas\AzureKeyVault\Facades\AzureKeyVault;
39+
40+
//...
41+
42+
AzureKeyVault::sign(Str::random(2000));
43+
```

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "pderas/azure-key-vault",
3+
"version": "0.0.1",
4+
"description": "A package to interact with Azure Key Vault",
5+
"type": "library",
6+
"license": "MIT",
7+
"autoload": {
8+
"psr-4": {
9+
"Pderas\\AzureKeyVault\\": "src/"
10+
}
11+
},
12+
"authors": [
13+
{
14+
"name": "Brock Roadhouse",
15+
"email": "[email protected]"
16+
}
17+
],
18+
"minimum-stability": "stable",
19+
"prefer-stable": true,
20+
"require": {
21+
"php": "^8.1",
22+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
23+
"guzzlehttp/guzzle": "^7.9",
24+
"illuminate/filesystem": "^11.22"
25+
},
26+
"extra": {
27+
"laravel": {
28+
"providers": [
29+
"Pderas\\AzureKeyVault\\AzureKeyVaultServiceProvider"
30+
],
31+
"aliases": {
32+
"AzureKeyVault": "Pderas\\AzureKeyVault\\Facades\\AzureKeyVaultFacade"
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)