Download the PHP package allclearly/monitor without Composer

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

allclearly/monitor (PHP / Laravel)

ส่ง security event (login, request, error) เข้า AllClearly Monitoring เพื่อแจ้งเตือนทาง LINE เมื่อมีคนเดารหัสผ่าน บอทหาช่องโหว่ traffic พุ่ง หรือผู้ดูแล login จากประเทศใหม่

ตั้ง token จากแท็บ Monitoring ใน AllClearly (ขึ้นต้นด้วย acm_) ใน .env:

ไม่ตั้ง token = SDK ไม่ส่งอะไรเลย

Laravel (10, 11, 12)

ติดตั้งแล้วใช้ได้ทันทีผ่าน package discovery:

บอกว่าบัญชีไหนเป็นผู้ดูแล (ใช้ตรวจผู้ดูแล login จากประเทศใหม่) ด้วยชื่อ Gate ability:

ปรับค่าอื่น: php artisan vendor:publish --tag=allclearly-config (ปิดบางส่วน, path ที่ไม่ต้องส่ง, การเชื่อ header ของ proxy)

ส่ง event เอง เช่นตอนเปลี่ยนสิทธิ์ผู้ใช้:

PHP ทั่วไป

RequestInfo::fromGlobals() อ่าน IP จาก CF-Connecting-IP / X-Real-IP / X-Forwarded-For ถ้าเว็บไม่ได้อยู่หลัง proxy ให้ใช้ RequestInfo::fromGlobals(trustProxy: false) เพราะ header เหล่านี้ปลอมได้

พฤติกรรมเมื่อส่งไม่สำเร็จ

PHP ไม่มี process ค้างไว้ส่งซ้ำ: เน็ตหลุด, 429, 5xx = ทิ้งชุดนั้น; 401/402 = หยุดส่ง (token ผิดหรือแพ็กเกจไม่มี Monitoring) ทุกกรณีแจ้งผ่าน onError (Laravel: เขียน log warning ครั้งเดียว) ไม่ throw

ฟิลด์ทั้งหมดของ event: https://allclearly.com/docs/monitoring-ingest.md


All versions of monitor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
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 allclearly/monitor contains the following files

Loading the files please wait ...