klepak / enterprise-driver-management
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
dev-master
2019-07-02 20:05 UTC
Requires
- guzzlehttp/guzzle: ~6.0
- klepak/console-progress-bar: ^1.0
- klepak/php-js-webrequest: dev-master
- laravel/framework: 5.8.*
Requires (Dev)
- orchestra/testbench: ^3.7
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2022-06-29 01:13:56 UTC
README
Automatically generate and maintain driver sets for computer models from HP. Dell, Lenovo and Microsoft coming soon.
Getting started
Install package
composer require klepak/enterprise-driver-management
Publish config
php artisan vendor:publish --provider="Klepak\DriverManagement\DriverManagementServiceProvider" --force
Migrate
php artisan migrate
Usage
Downloading catalog
Console
php artisan catalog:update hp,dell,lenovo
Only driver packs:
php artisan catalog:update hp,dell,lenovo --dpc
Only product catalog:
php artisan catalog:update hp,dell,lenovo --pc
Code
use Klepak\DriverManagement\Controllers\VendorCatalog\HP\HpDriverPackCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\HP\HpProductCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\Dell\DellDriverPackCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\Dell\DellCatalogPcController; HpDriverPackCatalogController::checkForCatalogUpdates(); HpProductCatalogController::checkForCatalogUpdates(); DellDriverPackCatalogController::checkForCatalogUpdates(); DellCatalogPcController::checkForCatalogUpdates();
Processing catalog
Catalog needs to be downloaded using above steps before processing.
Console
php artisan catalog:process hp,dell,lenovo
Only driver packs:
php artisan catalog:process hp,dell,lenovo --dpc
Only product catalog:
php artisan catalog:process hp,dell,lenovo --pc
Code
use Klepak\DriverManagement\Controllers\VendorCatalog\HP\HpDriverPackCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\HP\HpProductCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\Dell\DellDriverPackCatalogController; use Klepak\DriverManagement\Controllers\VendorCatalog\Dell\DellCatalogPcController; (new HpDriverPackCatalogController)->processCatalog(); (new HpProductCatalogController)->processCatalog(); (new DellDriverPackCatalogController)->processCatalog(); (new DellCatalogPcController)->processCatalog();