yashveersingh / shellhub-php
PHP package for ShellHub api
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yashveersingh/shellhub-php
Requires
- php: >=8.1
Requires (Dev)
- laravel/legacy-factories: ^1.3
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.11
- phpunit/phpunit: ^10.3
This package is auto-updated.
Last update: 2025-10-23 00:43:36 UTC
README
What It Does
This package allows you to sync devices from Shellhub and save it in database.
Installation:
composer require yashveersingh/shellhub-php
After installing package run:
php artisan shellhub:install
This will generate shellhub.php file in config directory.
<?php return [ 'url' => env('shell_hub_url', ''), 'username' => env('shell_hub_username', ''), 'password' => env('shell_hub_password', ''), ];
You need to override url username password
Note: You need to have cron setup every minute.
php artisan schedule:run
or
Manually run these command in order to fetch api key and devices
php artisan shellhub:refresh_api_key php artisan shellhub:sync
If u need to sync immediately, You can run this command manually.
Testing
composer test
Security
If you discover any security-related issues, please email yashveersingh444444@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.