PHPackages                             boserup/laravel-time-weaver - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. boserup/laravel-time-weaver

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

boserup/laravel-time-weaver
===========================

Log response time of external HTTP requests.

1.0.0(2y ago)23MITPHPPHP &gt;=7.4

Since Nov 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/boserup/laravel-time-weaver)[ Packagist](https://packagist.org/packages/boserup/laravel-time-weaver)[ Docs](https://github.com/boserup/laravel-time-weaver)[ RSS](/packages/boserup-laravel-time-weaver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Time Weaver
===================

[](#laravel-time-weaver)

A small footprint package designed for seamlessly tracking and logging the response time of external HTTP requests within your Laravel applications. Inspired by the realms of science fiction, this package acts as a temporal guardian, meticulously recording and analyzing the chronicles of your application's interactions with the vast digital cosmos.

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

[](#installation)

```
composer require boserup/laravel-time-weaver
```

Getting Started
---------------

[](#getting-started)

1. **Configure AWS Credentials:**By default Laravel Time Weaver logs to CloudWatch. Set the following environment variables to configure AWS credentials:

    - `AWS_REGION`: Your AWS region.
    - `CLOUDWATCH_KEY`: Your CloudWatch access key.
    - `CLOUDWATCH_SECRET`: Your CloudWatch secret key.
2. **Customize Metric Namespace:**If you wish to change the default metric namespace from "LaravelTimeWeaver," set the `TIME_WEAVER_CLOUDWATCH_METRIC_NAMESPACE` environment variable.
3. **Adjust Metric Name:**To modify the default metric name from "ExternalHttpResponseTime," set the `TIME_WEAVER_CLOUDWATCH_METRIC_NAME`environment variable.
4. **Toggle Logging for all hosts:**By default Laravel Time Weaver will log the response time for all outgoing requests. Toggle this behaviour by setting the `TIME_WEAVER_LOG_ALL_HOSTS` environment variable. If set to `false`, you'll need to publish the configuration file to define the list of allowed hosts.

    ```
    php artisan vendor:publish --tag=time-weaver-config
    ```

Using a Custom Logger
---------------------

[](#using-a-custom-logger)

Laravel Time Weaver allows you to use a custom logger for recording response times. By default, the package ships with CloudFront metric logging. However, you have the flexibility to implement your own logger by following these steps:

1. **Publish Configuration File:**If you haven't already, publish the configuration file using the following command:

    ```
    php artisan vendor:publish --tag=time-weaver-config
    ```

    This will create a configuration file `(config/time-weaver.php)` in the `config` directory.
2. **Update Configuration:**Open the published configuration file. Within this file, you can customize the logger class.

    ```
    return [
       // Other configuration options...

       'logger' => \Your\Custom\Logger\CustomLogger::class,

       // Other configuration options...
    ];
    ```

    Set the `'logger' attribute to the fully-qualified class name of your custom logger.
3. **Implement Custom Logger:**Your custom logger class should implement the `LoggerContract` interface, defined as such:

    ```

    ```

Contributing
------------

[](#contributing)

We welcome contributions from fellow time travelers and developers. Feel free to fork the repository, make improvements, and submit pull requests.

License
-------

[](#license)

Laravel Time Weaver is open-source software licensed under the MIT license.

Embark on a journey through time and space with Laravel Time Weaver – your trusted companion in unraveling the mysteries of response time optimization!

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/546d99d9518b5f8246b11aa5a19a4caf63a91dbb95a8d41695d7f901db301e46?d=identicon)[boserup](/maintainers/boserup)

---

Top Contributors

[![boserup](https://avatars.githubusercontent.com/u/1843584?v=4)](https://github.com/boserup "boserup (6 commits)")

---

Tags

cloudwatch-metricslaravel-packagelaravelawscloudwatchboseruptime-weaver

### Embed Badge

![Health badge](/badges/boserup-laravel-time-weaver/health.svg)

```
[![Health](https://phpackages.com/badges/boserup-laravel-time-weaver/health.svg)](https://phpackages.com/packages/boserup-laravel-time-weaver)
```

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[phpnexus/cwh

AWS CloudWatch Handler for Monolog library

393.2M7](/packages/phpnexus-cwh)[tarfin-labs/laravel-cloudwatch-logger

Laravel logger for AWS Clouldwatch Log service.

20160.7k](/packages/tarfin-labs-laravel-cloudwatch-logger)

PHPackages © 2026

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