cognetif/laravel-utilities

This package is abandoned and no longer maintained. No replacement package was suggested.

Some Laravel Utilities

v0.6.0 2021-09-20 13:51 UTC

This package is auto-updated.

Last update: 2024-02-26 14:51:50 UTC


README

This library contains some useful utilities that are intended for use with Laravel.

Installation

Installation with composer:

$ compose require cognetif/laravel-utilites

Tools

HealthCheck Monitor

  • Pings HealthCheck service to monitor uptime or successful runs.

RunTime Monitor

  • Calculates service runtimes.

SecondsFormatter

  • Formats an integer number of seconds to a human readable time. Very simplified.
  • ex: 63165817 becomes: 2y 1d 2h 3m 37s when passed format: '%yy %dd %hh %mm %ss'.
  • Simplified: if time part is missing from format, it will be ignored, time will not rollover to next smallest part.
  • InvalideTypeException thrown if not passed integer seconds.

License

This library is protected under the MIT license. Please read the terms of the License.

Issues / Contributing

Contributions are welcome and encouraged. This library is open source but maintained by Cognetif.com. Please feel free to open an issue at: https://gitlab.com/cognetif-os/poka-api-client