Download the PHP package sitetus/collector without Composer

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

sitetus/collector (PHP)

Read-only collector for the Sitetus monitoring panel: a single PHP file you place on your server so the panel can read a package inventory and health facts from inside the site, through signed requests the panel sends. It is optional: the panel works without it; the collector only adds inventory and inside-the-server health data.

The file is generated by the panel for each installation (public key, identifier and a random path baked in) and downloaded as a zip. The Laravel wrapper (sitetus/laravel-collector) installs the same core through Composer.

What this file will not do

A public commitment, enforced by the code and its tests:

How it works

Install (shared hosting included)

  1. Download the zip from the panel: index.php plus an install note.
  2. Upload index.php with FTP or the file manager into the random-named folder under your public/ (or web root) directory, as the package says.
  3. Press "Verify connection" in the panel. That is all.

Optional one line (Laravel): to let the panel watch the scheduler and queue health, add the single line from the package to routes/console.php and deploy; without it those two checks show "no data" and nothing else is affected.

Uninstall: delete the file. The panel side can also revoke the collector with one click.

Composer wrapper (Laravel)

The same core is available as the sitetus/laravel-collector package (PHP ≥ 8.1): its service provider registers the pull route (/sitetus/<install-path>), writes the scheduler and queue heartbeats itself (no line to add), and lets you add developer-defined checks to the envelope with Sitetus::check('orders_last_24h', fn () => CheckOutcome::ok(42)) — numbers and booleans only, never text. The envelope is byte-for-byte the single-file one, except for collector.name.

Optional modules

No module is selected by default. You choose them in the panel when the package is generated; the code of every module you did not choose is removed from your file, and the list of the selected ones is written at its top.

Module What it adds
files Names (never content) of sensitive, recently changed or suspicious files under the web root and the upload directories
archives Number, size and names of archive and dump files left under the web root
permissions World-writable files and directories in the project
bot_traffic Request counts per AI crawler from the access log

files: what the content scan recognises

The first and last 8 KB of the PHP files under the web root are read on your server and matched against a short list of shapes that planted code takes. A match sends the file's name and the id of the rule, never a line of the file.

A match is a reason to look at the file, not a verdict; "nothing matched" says nothing about a file longer than 16 KB beyond its two ends.

Verification

Every envelope carries the SHA-256 of the installed file (collector.file_hash); the panel compares it with the fingerprint it recorded when it generated your package, and the source version is written at the top of the file. composer build prints the SHA-256 of the build it produces.

Requirements

Works under strict disable_functions and open_basedir; what it cannot measure is reported as "no data".

Development

Security reports: write to [email protected]; please do not open a public issue. See SECURITY.md.

License

MIT — LICENSE.


All versions of collector with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 sitetus/collector contains the following files

Loading the files please wait ...