Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbero90 committed Feb 12, 2024
1 parent dbb4eb9 commit 71003ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ $lazyCollection = LazyJsonPages::from($source)
Framework-agnostic package to load items from any paginated JSON API into a [Laravel lazy collection](https://laravel.com/docs/collections#lazy-collections) via async HTTP requests.

> [!TIP]
> Do you need to read large JSON with no pagination in a memory-efficient way? Consider using [🐼 Lazy JSON](https://github.com/cerbero90/lazy-json) or [🧩 JSON Parser](https://github.com/cerbero90/json-parser) instead.
> Need to read large JSON with no pagination in a memory-efficient way?
> Consider using [🐼 Lazy JSON](https://github.com/cerbero90/lazy-json) or [🧩 JSON Parser](https://github.com/cerbero90/json-parser) instead.

## 📦 Install
Expand Down Expand Up @@ -293,7 +294,7 @@ LazyJsonPages::from($source)
->middleware('cache_responses', $cacheResponses);
```

If we a middleware to be added every time we invoke Lazy JSON Pages, we can add a global middleware:
If we need a middleware to be added every time we invoke Lazy JSON Pages, we can add a global middleware:

```php
LazyJsonPages::globalMiddleware('fire_events', $fireEvents);
Expand Down

0 comments on commit 71003ec

Please sign in to comment.