Download the PHP package tekintian/sentry_php without Composer

On this page you can find all versions of the php package tekintian/sentry_php. 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 sentry_php

Sentry PHP日志管理系统

Sentry PHP 可视化日志管理系统,支持 php5.3以上版本, 支持 thinkphp5, ci, yii2, laravel等PHP框架, 可以集成到框架中,也可直接使用.

PHP集成 sentry 通用方法:

  1. composer require "tekintian/sentry_php"
# 2种载入方式,选择其中一种即可
# 方案 一:  采用autoload.php自动载入方式加载 Sentry 
require_once  __DIR__ . 'vendor/autoload.php';

# 方案 二:  在你的入口文件中载入Sentry ,直接载入方式, 
require_once  __DIR__ . '/vendor/tekintian/sentry_php/src/sentry_php/Sentry.php';
  1. 在你的入口文件中增加
    //$client_url 为你的sentry服务端分配的客户端URL
    \tekintian\sentry_php\Sentry::listen('http://88861b9070395551b55063f03a6ca988:[email protected]/1');

thinkphp5 sentry 可视化日志管理系统配置步骤

一. thinkphp/base.php 配置方法 (推荐此种方案)

  1. 在项目根目录执行 composer require "tekintian/sentry_php"

  2. 在 thinkphp/base.php 文件的最后增加一下代码
# 注意将  http://88861b9070395551b55063f03a6ca988:[email protected]/1 换成你自己的 sentry 服务端分配的URL即可
// sentry日志监听开启;
\tekintian\sentry_php\Sentry::listen('http://88861b9070395551b55063f03a6ca988:[email protected]/1');

提示: 在 thinkphp/base.php 文件的最后, thinkphp5已经自动加载了 Sentry类; 如果是在 index.php 入口文件最前面的话需要手动加载 Sentry 后才可执行

二. tp5 public/index.php 配置方法

// Sentry start
// Sentry 放到TP入口文件的最前面, 需要手动加载Sentry.php
require __DIR__ . '/../vendor/tekintian/sentry_php/src/sentry_php/Sentry.php';
// sentry日志监听开启;
\tekintian\sentry_php\Sentry::listen('http://88861b9070395551b55063f03a6ca988:[email protected]/1');
// sentry end

// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');

// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';

thinkphp5 sentry 配置截图

PS: Sentry php Thinkphp5 只能放到 thinkphp/base.php 这个文件中,放到其他地方可能导致不正常!

Tekin

[email protected]


All versions of sentry_php with dependencies

PHP Build Version
Package Version
No informations.
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 tekintian/sentry_php contains the following files

Loading the files please wait ....