Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 56c385a

Browse files
committedAug 7, 2024
Added all code again
1 parent d86fdf7 commit 56c385a

File tree

104 files changed

+4234
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+4234
-0
lines changed
 

‎.github/workflows/tests.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: ['ubuntu-latest']
13+
php: [ '8.3', '8.2', '8.1', '8.0', '7.4' ]
14+
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
coverage: none
24+
extensions: mbstring
25+
26+
- name: Download dependencies
27+
run: composer install --no-interaction --no-progress
28+
29+
- name: Execute PHPUnit
30+
run: vendor/bin/phpunit tests

‎README.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Pacote Palo Alto Networks API em PHP
2+
3+
## SINOPSE
4+
5+
```php
6+
<?php
7+
use PAN\PaloAltoNetworks;
8+
9+
$pan = new PaloAltoNetworks([
10+
'clientId' => 'email@domain.com',
11+
'clientSecret' => 'c51bd264-1943-4be8-8125-320f92bb5587',
12+
'tsgId' => 123456789,
13+
'redis' => [
14+
'schema' => 'tcp',
15+
'host' => '127.0.0.1'
16+
]''
17+
]);
18+
19+
$search = [
20+
'limit' => 50,
21+
'offset' => 0,
22+
'position' => 'pre',
23+
'folder' => 'Shared'
24+
];
25+
26+
$securityRules = $pan->securityRules($search);
27+
28+
$list = $securityRules->list();
29+
30+
$success = $list->success(); // it is bool, return true or false
31+
$code = $list->code(); // it is number, return 200, 400, 401 and ...
32+
$body = $list->body(); // it is object with the body of message
33+
```
34+
35+
## DESCRIÇÃO
36+
37+
Esse pacote PHP tem o propósito de facilitar o acesso a API do Palo Alto Networks, atualmente conta com funcionalidades para manipular os endpoints: Addresses, SecurityRules, Services e Tags.
38+
39+
## VERSÃO
40+
1.0.5
41+
42+
## INSTALAÇÃO
43+
44+
### Composer
45+
46+
```json
47+
{
48+
"repositories": [
49+
{
50+
"type": "vcs",
51+
"url": "https://github.com/nosportugal/pan-php.git"
52+
}
53+
],
54+
"require": {
55+
"nosportugal/pan-php": "1.0.5"
56+
}
57+
}
58+
```

0 commit comments

Comments
 (0)
Please sign in to comment.