{"id":13404893,"url":"https://github.com/jrgp/linfo","last_synced_at":"2025-05-15T11:14:51.009Z","repository":{"id":10449122,"uuid":"12617956","full_name":"jrgp/linfo","owner":"jrgp","description":"Linfo PHP Server Health Status","archived":false,"fork":false,"pushed_at":"2023-08-09T20:10:08.000Z","size":1162,"stargazers_count":356,"open_issues_count":13,"forks_count":79,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-04-14T10:46:04.573Z","etag":null,"topics":["linux","monitoring","php","stats","webui"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrgp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-09-05T13:09:56.000Z","updated_at":"2024-03-27T16:24:28.000Z","dependencies_parsed_at":"2022-09-05T03:00:57.257Z","dependency_job_id":"f7d7e1ab-9484-41a9-89c2-3d379b949803","html_url":"https://github.com/jrgp/linfo","commit_stats":{"total_commits":730,"total_committers":37,"mean_commits":19.72972972972973,"dds":"0.20684931506849313","last_synced_commit":"69c76c4613932d4a3ca36c36faebb122093522f6"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrgp%2Flinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrgp%2Flinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrgp%2Flinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrgp%2Flinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrgp","download_url":"https://codeload.github.com/jrgp/linfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328402,"owners_count":22052634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","monitoring","php","stats","webui"],"created_at":"2024-07-30T19:01:52.879Z","updated_at":"2025-05-15T11:14:50.973Z","avatar_url":"https://github.com/jrgp.png","language":"PHP","funding_links":[],"categories":["PHP","类库"],"sub_categories":["未归类"],"readme":"# Linfo - Server stats UI/library\n\n[![Build Status](https://travis-ci.org/jrgp/linfo.svg?branch=master)](https://travis-ci.org/jrgp/linfo)\n\n\n### Linfo is a:\n\n - Light themable Web UI and REST API displaying lots of system stats\n - Ncurses CLI view of WebUI\n - Extensible, easy (composer) to use PHP5 Library to get extensive system stats programmatically from your PHP app\n\n### Contributing\n\nInterested in contributing? Check out [Development Readme](DEVELOPERS.md)\n\n### web UI\n![Linfo WebUI Screenshot](http://jrgp.us/misc/linfo.png)\n\n### ncurses preview\n![Linfo Ncurses Screenshot](http://jrgp.us/misc/linfo_curses.png)\n\nSee: [Enabling ncurses](NCURSES.md)\n\n### PHP library usage\n\n```bash\ncomposer require linfo/linfo\n```\n\n```php\n\u003c?php\n$linfo = new \\Linfo\\Linfo;\n$parser = $linfo-\u003egetParser();\n\nvar_dump($parser-\u003egetCPU()); // and a whole lot more\n```\n\n\n\n## Runs on\n - Linux\n - Windows\n - FreeBSD\n - NetBSD\n - OpenBSD\n - DragonflyBSD\n - Darwin/Mac OSX\n - Solaris\n - Minix\n\n## Information reported\n - CPU type/speed; Architecture\n - Mount point usage\n - Hard/optical/flash drives\n - Hardware Devices\n - Network devices and stats\n - Uptime/date booted\n - Hostname\n - Memory usage (physical and swap, if possible)\n - Temperatures/voltages/fan speeds\n - RAID arrays\n - Via included extensions:\n   - Nvidia GPU temps\n   - Truecrypt mounts\n   - DHCPD leases\n   - Samba status\n   - APC UPS status\n   - Transmission torrents status\n   - uTorrent torrents status\n   - Soldat server status\n   - CUPS printer status\n   - IPMI\n   - libvirt VMs\n   - lxd Containers\n   - more\n\n## System requirements:\n - At least PHP 8\n\n#### Windows\n - You need to have [COM enabled](http://www.php.net/manual/en/class.com.php).\n\n#### Linux\n - /proc and /sys mounted and readable by PHP\n - Tested with the 2.6.x/3.x/4.x/5.x/6.x kernels\n\n#### FreeBSD\n - PHP able to execute usual programs under /bin, /usr/bin, /usr/local/bin, etc\n - Tested on 8.0-RELEASE, 10.2-RELEASE\n\n#### NetBSD\n - PHP able to execute usual programs under /bin, /usr/bin, /usr/local/bin, /usr/pkg/bin, etc\n - Tested on NetBSD 5.0.2\n\n#### OpenBSD\n - PHP able to execute usual programs under /bin, /usr/bin, /usr/local/bin,  etc\n - Tested on OpenBSD 4.7, 5.7\n - Turn chroot of httpd/nginx/php-fpm off\n\n## Web UI Installation\n 1. Extract tarball contents to somewhere under your web root\n 2. Rename ``sample.config.inc.php`` to ``config.inc.php``, after optionally changing values in it\n 3. Visit page in web browser\n 4. Pass URL to your friends to show off\n\n\n### URL arguments\n\n- ``?out=json`` - JSON output\n- ``?out=jsonp\u0026callback=functionName`` - JSON output with a function callback. (Look here: http://www.json-p.org/ )\n- ``?out=php_array`` - PHP serialized associative array\n- ``?out=html`` - Usual lightweight HTML (default)\n\n### Extensions\n - See a list of php files in src/Linfo/Extensions/\n - Open them and look at the comment at the top of the file for usage\n\n\n## Troubleshooting:\n\nSet ``$settings['show_errors'] = true;`` in ``config.inc.php`` to yield useful error messages.\n\n\n## TODO:\n - Support for other Unix operating systems (Hurd, IRIX, AIX, HP UX, etc)\n - Support for strange operating systems: Haiku/BeOS\n - More superfluous features/extensions\n - Make ncurses mode rival htop (half kidding)\n\n## Meta\n - By Joe Gillotti \u003cjoe@u13.net\u003e\n - Licensed under MIT\n - Pull requests! [Linfo on Github](http://github.com/jrgp/linfo)\n - [Commit stats from OpenHub/Ohloh](https://www.openhub.net/p/linfo)\n\n_This project is dedicated to the memory of Eric Looper._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrgp%2Flinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrgp%2Flinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrgp%2Flinfo/lists"}