Skip to content

Commit

Permalink
Add code example for Fastly CDN integration
Browse files Browse the repository at this point in the history
Updated the README.md to include a PHP code example demonstrating how to integrate and configure the Fastly CDN module for BEAR.Sunday. This should help developers understand the implementation process more clearly.
  • Loading branch information
koriym committed Nov 21, 2024
1 parent 352d1f5 commit f72c1a1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
>
> – Phil Karlton
Fastly CDN integration for BEAR.Sunday
Fastly CDN integration module for BEAR.Sunday

See https://bearsunday.github.io/manuals/1.0/ja/cache.html
## Example

```php
use BEAR\FastlyModule\FastlyEnableSoftPurgeModule;
use BEAR\FastlyModule\FastlyPurgeModule;

// Set API key and service ID
$this->install(new FastlyPurgeModule(
$fastlyApiKey,
$fastlyServiceId
));

// Enable soft purge
$this->install(new FastlyEnableSoftPurgeModule());
```
See more at https://bearsunday.github.io/manuals/1.0/ja/cache.html

0 comments on commit f72c1a1

Please sign in to comment.