Skip to content

Commit 382af5b

Browse files
Update README.md
1 parent 92f0f51 commit 382af5b

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Check out the [change log](CHANGELOG.md), [releases](https://github.com/DigitalO
1717

1818
## Installation
1919

20-
This version supports [PHP](https://php.net) 8.1-8.4. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
20+
This version supports [PHP](https://php.net) 8.1-8.5. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
2121

2222
### Standard Installation
2323

@@ -201,7 +201,7 @@ $database->migrate('405427f6-393a-4744-817a-2ec6c1b2e2c2', 'lon1');
201201
$database->remove('405427f6-393a-4744-817a-2ec6c1b2e2c2');
202202

203203
// return the DatabaseRules entity of cluster '405427f6-393a-4744-817a-2ec6c1b2e2c2'
204-
$rules = $database->getFirewallRules('405427f6-393a-4744-817a-2ec6c1b2e2c2')
204+
$rules = $database->getFirewallRules('405427f6-393a-4744-817a-2ec6c1b2e2c2');
205205

206206
// update firewall rules of cluster '405427f6-393a-4744-817a-2ec6c1b2e2c2'
207207
$database->updateFirewallRules('405427f6-393a-4744-817a-2ec6c1b2e2c2', [
@@ -291,7 +291,7 @@ $database->updateEvictionPolicy('3a9e419c-e38e-40ef-8f56-09b4254b80e2', 'allkeys
291291
$mode = $database->getSqlMode('d448b69d-3d06-411a-8ac7-c16132ba0f1e');
292292

293293
// update sql mode for cluster 'd448b69d-3d06-411a-8ac7-c16132ba0f1e'
294-
$database->updateSqlMode('d448b69d-3d06-411a-8ac7-c16132ba0f1e', 'ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE');
294+
$database->updateSqlModes('d448b69d-3d06-411a-8ac7-c16132ba0f1e', 'ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE');
295295
```
296296

297297
### CDN Endpoint
@@ -489,18 +489,18 @@ $ports = '22';
489489
$addresses = ['0.0.0.0/0', '::/0'];
490490

491491
if ($type == 'inbound_rules') {
492-
$locations = 'sources'
493-
} elseif($type == 'outbound_rules'){
492+
$locations = 'sources';
493+
} elseif ($type == 'outbound_rules') {
494494
$locations = 'destinations';
495495
}
496496

497497
$rules[$type] = [
498-
['protocol' => $protocol, 'ports' => $ports, $locations => ['addresses' => $addresses])
499-
);
498+
['protocol' => $protocol, 'ports' => $ports, $locations => ['addresses' => $addresses]],
499+
];
500500
$firewall->addRules($firewallId, $rules);
501501

502502
// remove above rule
503-
$firewall->removeRules($firewallId, $rules)
503+
$firewall->removeRules($firewallId, $rules);
504504

505505
// remove firewall id 123-abc
506506
$firewall->remove('123-abc');
@@ -575,7 +575,7 @@ $key->remove(123);
575575

576576
```php
577577
// return the load balancer api
578-
$loadBalancer = $client->loadbalancer();
578+
$loadBalancer = $client->loadBalancer();
579579

580580
//returns a collection of Load Balancer entities
581581
$loadBalancers = $loadBalancer->getAll();
@@ -611,24 +611,24 @@ $alert = $monitoring->getAlert('123e4567-e89b-12d3-a456-426655440000');
611611
// return inbound bandwidth metrics on the public interface of droplet id 123 from the past hour
612612
$bandwidth = $monitoring->getDropletBandwidth(
613613
'123',
614-
time() - 3600,
615-
time(),
614+
(string) (time() - 3600),
615+
(string) time(),
616616
)->data;
617617

618618
// return outbound droplet bandwidth metrics on the private interface of droplet id 123 from the past hour
619619
$bandwidth = $monitoring->getDropletBandwidth(
620620
'123',
621-
time() - 3600,
622-
time(),
621+
(string) (time() - 3600),
622+
(string) time(),
623623
'outbound',
624624
'private'
625625
)->data;
626626

627627
// Get current available storage for droplet id 123
628628
$freeStorage = $monitoring->getDropletFilesystemFree(
629629
'123',
630-
time(),
631-
time()
630+
(string) time(),
631+
(string) time()
632632
)->data;
633633
```
634634

@@ -680,7 +680,7 @@ $tag = $client->tag();
680680
$tags = $tag->getAll();
681681

682682
// return a Tag entity by name
683-
$tag = $tag->getByName();
683+
$tag = $tag->getByName('awesome');
684684

685685
// create a tag
686686
$tag = $tag->create('awesome');
@@ -723,7 +723,7 @@ $myvolume = $volume->create('example', 'Block store for examples', 10, 'nyc1');
723723
$volume->remove('506f78a4-e098-11e5-ad9f-000f53306ae1');
724724

725725
// removes a volume by name and region
726-
$volume->remove('example', 'nyc1');
726+
$volume->removeWithNameAndRegion('example', 'nyc1');
727727

728728
// attach a volume to a Droplet
729729
$volume->attach('506f78a4-e098-11e5-ad9f-000f53306ae1', 123, 'nyc1');
@@ -748,10 +748,10 @@ $volume->getActions('506f78a4-e098-11e5-ad9f-000f53306ae1');
748748

749749
```php
750750
// return the VPC api
751-
vpc = $client->vpc();
751+
$vpc = $client->vpc();
752752

753753
// returns the all VPCs
754-
vpcs = $vpc->getAll();
754+
$vpcs = $vpc->getAll();
755755
```
756756

757757

0 commit comments

Comments
 (0)