Skip to content

Commit

Permalink
Merge pull request #2 from TahsinGokalp/development
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
TahsinGokalp authored Mar 1, 2023
2 parents 877de90 + 9f5f08c commit 739113f
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [TahsinGokalp, cannonb4ll]
github: TahsinGokalp
64 changes: 32 additions & 32 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,70 @@
<p align="center">
<a href="https://www.larabug.com" target="_blank"><img width="130" src="https://www.larabug.com/images/larabug-logo-small.png"></a>
</p>
# Let
Laravel 6.x/7.x/8.x/9.x/10.x package for logging errors to [Let-Tracker](https://github.com/TahsinGokalp/let-tracker)

# LaraBug
Laravel 6.x/7.x/8.x/9.x package for logging errors to [larabug.com](https://www.larabug.com)

[![Software License](https://poser.pugx.org/larabug/larabug/license.svg)](LICENSE.md)
[![Latest Version on Packagist](https://poser.pugx.org/larabug/larabug/v/stable.svg)](https://packagist.org/packages/larabug/larabug)
[![Build Status](https://github.com/larabug/larabug/workflows/tests/badge.svg)](https://github.com/larabug/larabug/actions)
[![Total Downloads](https://poser.pugx.org/larabug/larabug/d/total.svg)](https://packagist.org/packages/larabug/larabug)
[![Software License](https://poser.pugx.org/tahsingokalp/let/license.svg)](LICENSE.md)
[![Latest Version on Packagist](https://poser.pugx.org/tahsingokalp/let/v/stable.svg)](https://packagist.org/packages/tahsingokalp/let)
[![Build Status](https://github.com/tahsingokalp/let/workflows/tests/badge.svg)](https://github.com/tahsingokalp/let/actions)
[![Total Downloads](https://poser.pugx.org/tahsingokalp/let/d/total.svg)](https://packagist.org/packages/tahsingokalp/let)

## Installation on laravel
You can install the package through Composer.
```bash
composer require larabug/larabug
composer require tahsingokalp/let
```

Then publish the config and migration file of the package using the vendor publish command.
```bash
php artisan vendor:publish --provider="LaraBug\ServiceProvider"
php artisan vendor:publish --provider="Let\ServiceProvider"
```
And adjust config file (`config/larabug.php`) with your desired settings.
And adjust config file (`config/let.php`) with your desired settings.

Note: by default only production environments will report errors. To modify this edit your LaraBug configuration.
Note: by default only production environments will report errors. To modify this edit your Let configuration.

## Installation on lumen
You can install the package through Composer.
```bash
composer require larabug/larabug
composer require tahsingokalp/let
```

Copy the config file (`larabug.php`) to lumen config directory.
Copy the config file (`let.php`) to lumen config directory.
```bash
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/larabug/larabug/config/larabug.php', 'config/larabug.php');"
php -r "file_exists('config/') || mkdir('config/'); copy('vendor/tahsingokalp/let/config/larletabug.php', 'config/let.php');"
```
And adjust config file (`config/larabug.php`) with your desired settings.
And adjust config file (`config/let.php`) with your desired settings.

In `bootstrap/app.php` you will need to:
- Uncomment this line:
```php
$app->withFacades();
```
- Register the larabug config file:
- Register the let config file:
```php
$app->configure('larabug');
$app->configure('let');
```
- Register larabug service provider:
- Register let service provider:
```php
$app->register(LaraBug\ServiceProvider::class);
$app->register(Let\ServiceProvider::class);
```

## Configuration variables
All that is left to do is to define two env configuration variables.
```
LB_KEY=
LB_PROJECT_KEY=
L_KEY=
L_PROJECT_KEY=
```
`LB_KEY` is your profile key which authorises your account to the API.
`L_KEY` is your profile key which authorises your account to the API.
`LB_PROJECT_KEY` is your project API key which you've received when creating a project.
`L_PROJECT_KEY` is your project API key which you've received when creating a project.
Get the variables at [larabug.com](https://www.larabug.com)
Install let-tracker to your host and get the variables
## Reporting unhandled exceptions
You can use LaraBug as a log-channel by adding the following config to the `channels` section in `config/logging.php`:
You can use Let as a log-channel by adding the following config to the `channels` section in `config/logging.php`:
```php
'channels' => [
// ...
'larabug' => [
'driver' => 'larabug',
'let' => [
'driver' => 'let',
],
],
```
Expand All @@ -77,7 +73,7 @@ After that you can add it to the stack section:
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'larabug'],
'channels' => ['single', 'let'],
],
//...
],
Expand All @@ -90,4 +86,8 @@ php -r "file_exists('config/') || mkdir('config/'); copy('vendor/laravel/lumen-f
```

## License
The LaraBug package is open source software licensed under the [license MIT](http://opensource.org/licenses/MIT)
The Let package is open source software licensed under the [license MIT](http://opensource.org/licenses/MIT)

## Special Thanks

This repo forked from https://github.com/LaraBug/LaraBug - https://github.com/Cannonb4ll
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
The MIT License (MIT)

Copyright (c) 2016 Dennis Smink - LaraBug
Copyright (c) 2023 Tahsin Gökalp Şaan - Let

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 0 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
"email": "[email protected]",
"homepage": "https://tahsingokalp.dev",
"role": "Owner"
},
{
"name": "Dennis Smink",
"email": "[email protected]",
"homepage": "http://www.dennissmink.nl",
"role": "Owner"
}
]
}
12 changes: 11 additions & 1 deletion config/let.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@
'*email*',
],

/*
|--------------------------------------------------------------------------
| Release git hash
|--------------------------------------------------------------------------
|
|
*/

// 'release' => trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')),

/*
|--------------------------------------------------------------------------
| Server setting
Expand All @@ -128,6 +138,6 @@
| Never turn SSL verification off on production instances
|
*/
'verify_ssl' => env('LB_VERIFY_SSL', true),
'verify_ssl' => env('L_VERIFY_SSL', true),

];
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="LaraBug Test Suite">
<testsuite name="Let Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down

0 comments on commit 739113f

Please sign in to comment.