PHPackages                             richpeers/laravel-log-oauth2-curl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. richpeers/laravel-log-oauth2-curl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

richpeers/laravel-log-oauth2-curl
=================================

Queue Laravel Logs send via curl and auth via OAuth2 Client Credentials Grant Token

11PHP

Since Jan 1Pushed 7y agoCompare

[ Source](https://github.com/richpeers/laravel-log-oauth2-curl)[ Packagist](https://packagist.org/packages/richpeers/laravel-log-oauth2-curl)[ RSS](/packages/richpeers-laravel-log-oauth2-curl/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Log OAuth2 cURL
=======================

[](#laravel-log-oauth2-curl)

[![Latest Stable Version](https://camo.githubusercontent.com/d1a1a23aa528b91f9f321c5013d30d323c034a21e00ff083e55f39cde30b0c32/68747470733a2f2f706f7365722e707567782e6f72672f7269636870656572732f6c61726176656c2d6c6f672d6f61757468322d6375726c2f762f737461626c65)](https://packagist.org/packages/richpeers/laravel-log-oauth2-curl)[![Total Downloads](https://camo.githubusercontent.com/7dec3c7a66aa38f099119f98625eaca4396658cff032d826fc2289dd2ff66bd9/68747470733a2f2f706f7365722e707567782e6f72672f7269636870656572732f6c61726176656c2d6c6f672d6f61757468322d6375726c2f646f776e6c6f616473)](https://packagist.org/packages/richpeers/laravel-log-oauth2-curl)[![Latest Unstable Version](https://camo.githubusercontent.com/0660a2cfd0486623ec5ea45ceb61d621a15fcb8deb516c942d0acec4609c1734/68747470733a2f2f706f7365722e707567782e6f72672f7269636870656572732f6c61726176656c2d6c6f672d6f61757468322d6375726c2f762f756e737461626c65)](https://packagist.org/packages/richpeers/laravel-log-oauth2-curl)[![License](https://camo.githubusercontent.com/4074df774850e2f504423bb7335e2c20b277b27cadb884ea2fa3da58693b93d6/68747470733a2f2f706f7365722e707567782e6f72672f7269636870656572732f6c61726176656c2d6c6f672d6f61757468322d6375726c2f6c6963656e7365)](https://packagist.org/packages/richpeers/laravel-log-oauth2-curl)

Custom Log driver for Laravel **5.6** || **5.7**

Queued and posted via cURL, authorised with (cached) Client Credentials Grant Token.

This package is intended as a client to a server, for recording logs. Useful where you have multiple projects and might have one or more instances. For example develop, test or staging.

Server requirement
------------------

[](#server-requirement)

Two endpoints are required at your log server. These are defaults and can be changed in config.

- `/oauth/token` [Passport](https://laravel.com/docs/5.7/passport)'s default route for granting token response to **client\_id** and **client\_secret**.
- `/api/logger` POST the logs.

Installation
------------

[](#installation)

Install with composer. The package will automatically register itself.

```
composer require richpeers/laravel-log-oauth2-curl

```

Add environment specific variables. Get the **client\_id** and **client\_secret** credentials from your log server.

```
LOG_SERVER_HOST=https://your-server.base-url.com
LOG_SERVER_CLIENT_ID=
LOG_SERVER_CLIENT_SECRET=

```

Add the following to the *channels* array in your **/config/logging.php** file.

```
'logserver' => ['driver' => 'logserver']

```

Set default log channel in **.env** ( Or add channel to stack array in /config/logging.php )

```
LOG_CHANNEL=logserver

```

Optionally run this command to copy **logserver.php** to /config, to modify it.

```
php artisan vendor:publish --tag=logserver

```

Queue Driver
------------

[](#queue-driver)

As the package queues the logs before being authenticated and posted to the log server, using something like redis as your queue driver will mean a faster response for the user if there is an error.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/58d25d4013647f59e8d3896df3c7d1aa46c04e62f718ae11c5bb494d5b22233a?d=identicon)[richpeers](/maintainers/richpeers)

---

Top Contributors

[![richpeers](https://avatars.githubusercontent.com/u/2292987?v=4)](https://github.com/richpeers "richpeers (5 commits)")

---

Tags

curllaravelmonologoauth2

### Embed Badge

![Health badge](/badges/richpeers-laravel-log-oauth2-curl/health.svg)

```
[![Health](https://phpackages.com/badges/richpeers-laravel-log-oauth2-curl/health.svg)](https://phpackages.com/packages/richpeers-laravel-log-oauth2-curl)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
