Download the PHP package knotsphp/system without Composer
On this page you can find all versions of the php package knotsphp/system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package system
System
A modern PHP library to get system information with Enums and Value Objects.
The goal is to get reliable and consistent system information across different operating systems.
This library use local commands to get the system information and parse the output to ensure consistency.
It also provides a command line utility: sysinfo
.
Compatible with MacOS, Linux, and Windows.
This library is still very young and contributions are welcome.
🚀 Installation
📚 Usage
`
The OperatingSystemContract
provides the following methods through the Windows
, Linux
, and MacOS
classes.
📚 Use in command line
You can also use this library in the command line by using the system
command.
It's recommended to install the library globally to use it in the command line.
Then you can use the sysinfo
command.
📖 Documentation
This library is compatible with MacOS, Linux, and Windows.
Contributions are welcome to add more operating systems.
📋 TODO
- [ ] Make the Shell class usable through a pipeline to run commands through SSH
- [ ] Add an DataValueObject so the developer can feed raw data and pass it to other libraries
- [ ] Make a Machine class to get more information about the machine
- [ ] Make a Monitor class to get current system usage
- [ ] Make a Network class to get network information
Suggestions are welcome, but please follow these guidelines:
- Do not add anything that requires elevated access
- Do not add anything that requires writing to the system
- Do not add anything that requires installation of additional software
🤝 Contributing
Clone the project and run composer update
to install the dependencies.
Before pushing your changes, run composer qa
.
This will run pint (code style), phpstan (static analysis), and pest (tests).
👥 Credits
System was created by Eser DENIZ.
📝 License
System is licensed under the MIT License. See LICENSE for more information.
All versions of system with dependencies
ext-pcre Version *