Download the PHP
package somarkn99/host-info without Composer
On this page you can find all versions of the php package
somarkn99/host-info. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor somarkn99 Package host-info Short Description This package provides a set of key information about your server in order to view it to the user. License
MIT
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.
This package provides a set of key information about your server in order to view it to the user.
Installation
You can install the package via composer:
Config
copy path to config/app.php:
Usage
After you Install package and upload to you host, you will have this route:
When you request the endpoint it will return array:
✅ Server OS
✅ Server Software
✅ Server IP
✅ Server Port
✅ Server Country
✅ Server City
✅ Server Hostname
✅ Document Root
✅ Total CPUs
✅ Total Ram
✅ PHP Version
✅ PHP Max Upload Size
✅ PHP Max Execution Time
✅ PHP Short Tag
✅ PHP Memory Limit
Where you can use this ? :thinking:
The idea for this came when one of my clients asked me to access the basic server information from the control panel, now you can show it to the user easily instead of writing it in every new project from the beginning.
Note :warning:
Not all of these codes have to be from my pure work, there are many of them on the Internet that I may have done some but not limited to some modification, improvement, or modification of the appearance of the code to become readable, understandable or appropriate to the place of use.
If you have any code you think will be useful and people will use frequently in many projects do not hesitate to do a pull request to this repo.
By the way, I'm available to work as freelancer, feel free to communicate with me in order to transform your project from an idea to reality.
You Can contact me for freelancer job vie email :
Security
If you discover any security related issues, please email them first to [email protected],
if we do not fix it within a short period of time please open a new issue describe your problem.
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 somarkn99/host-info contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.