grafite / mission-control
The PHP agnostic package for Mission Control (Grafite Inc)
Installs: 4 586
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.3|>=8.0
- guzzlehttp/guzzle: ^7.5
- illuminate/collections: ^10.|^11.0
- illuminate/support: ^9.0|^10.2|^11
- kassner/log-parser: ^1.5
- nesbot/carbon: ^1.25|^2.16
Requires (Dev)
- fakerphp/faker: ^1.10
- mikey179/vfsstream: ^1.6
- mockery/mockery: ^1.0
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0
- dev-main
- v3.2.0
- v3.1.0
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-develop
This package is auto-updated.
Last update: 2024-11-12 16:17:01 UTC
README
Mission Control PHP Package - Send data to Grafite's Mission Control system to stay in control of your applications.
Grafite's Mission Control is an elegant Application Performance Management system. Forget being inundated with hundreds of charts and complex configurations for CMS websites, custom E-commerce platforms etc. Utilize the simple user interface, with specific data for high demand moments. Get notifications within minutes of your system being overloaded, or high levels of errors being triggered. Set it up in less than 5 minutes with your next deployment, and take back your weekends.
Requirements
- PHP 7.3+
Composer
composer require grafite/mission-control
IssueService
IssueService lets you peak into your exceptions or any tagged messages you'd like to track. You can do so using the following methods:
use Grafite\MissionControl\IssueService;
try {
// do some code
} catch (Exception $e) {
$issueService = new IssueService('{API Token}', '{Project Key}');
$issueService->exception($e);
}
Or if you just want to flag an potential issue or concern in your applicaiton:
use Grafite\MissionControl\IssueService;
$issueService = new IssueService('{API Token}', '{Project Key}');
$issueService->log('Anything you want to say goes here', 'tag');
Tags
Tags can be any terminology you want, to help sort through your issues.
NotifyService
You can easily give yourself tagged notifications for your applications through this handy service.
use Grafite\MissionControl\NotifyService;
(new NotifyService('{API Token}', '{Project Key}'))->send('This is a title', 'info', 'This is a custom message');
JavaScriptService
Want to get notified when users have JavaScript issues, just place this at the end of your scripts in your app templates.
echo (new Grafite\MissionControl\JavaScriptService($uuid, $key))->render();
PerformanceService
Add this cron job to enable PerformanceService which scans your system to report back to mission control the state of your server.
*/5 * * * * /{app-path}/vendor/bin/performance {API token}
License
Mission Control PHP Package is open-sourced software licensed under the MIT license
Bug Reporting and Feature Requests
Please add as many details as possible regarding submission of issues and feature requests
Disclaimer
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.