Download the PHP package samirmhsnv/laravel-linear-log without Composer

On this page you can find all versions of the php package samirmhsnv/laravel-linear-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-linear-log

Laravel Linear Issues

Create Linear issues automatically from Laravel log events using a custom Monolog logging driver.

Installation

Laravel package auto-discovery registers the service provider automatically.

Publish package config (optional, if you want a dedicated config file):

Configuration

The package registers a custom log driver named linear.

Example channel in your app config/logging.php:

Environment Variables

Key Required Description Example
LINEAR_LOG_LEVEL No Minimum log level sent to the linear channel. Use error for production issue creation. error
LINEAR_API_KEY Yes Linear API key used in the Authorization header for GraphQL requests. lin_api_xxxxxxxxxxxxx
LINEAR_TEAM_ID Yes Linear team ID where issues are created. a1b2c3d4-e5f6-7890-abcd-ef1234567890
LINEAR_PROJECT_ID No Optional Linear project ID to attach created issues to a specific project. 1f2e3d4c-5b6a-7890-cdef-1234567890ab
LINEAR_STATE_ID No Optional workflow state ID (e.g. Backlog, Todo). If omitted, Linear uses the team's default initial state. 9a8b7c6d-5e4f-3210-abcd-1234567890ef
LINEAR_BUG_LABEL_ID No Linear label ID for the Bug badge. Applied automatically for error/critical logs only. c0ffee00-1111-2222-3333-444455556666
LINEAR_PRIORITY No Optional Linear priority value for created issues. 2
LINEAR_TITLE_PREFIX No Prefix added to issue titles before log details. Chatasist
LINEAR_TIMEOUT No HTTP request timeout in seconds for the Linear API request. 3.0
LINEAR_CONNECT_TIMEOUT No HTTP connect timeout in seconds for establishing the Linear API connection. 1.5

Usage

Send logs directly to Linear

Add to stack channel

When used in a stack, Laravel will continue writing to your standard channel(s) while also creating Linear issues for matching log levels.

Setup IDs From Linear API

Set your API key first:

Then fetch IDs using these commands.

Get Team ID

Pick your team from key / name, then set:

Get Project ID (Optional)

Set:

Get State ID (Optional)

Set:

Get Bug Label ID (Optional)

Find the label with name = "Bug" and set:

Apply New Env Values

Smoke Test

If you see Invalid scope: read required, create a new Linear API key with read scope (and issue create/write scope).

Behavior Notes

Requirements

License

MIT


All versions of laravel-linear-log with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/log Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
monolog/monolog Version ^2.8|^3.0
guzzlehttp/guzzle Version ^7.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package samirmhsnv/laravel-linear-log contains the following files

Loading the files please wait ...