globalxtreme / compress-file
GlobalXtreme compress file with go and php
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Go
pkg:composer/globalxtreme/compress-file
Requires
- php: >= 7
This package is auto-updated.
Last update: 2025-09-29 03:06:55 UTC
README
Install with composer
For install with Composer, simply require the latest version of this package.
composer require globalxtreme/compress-file
Server
If you install this package in server (ubuntu or centos), you must be add script in composer.json.
{
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"sh vendor/globalxtreme/compress-file/src/go/install-moduls.sh"
]
}
}
You can manual run "sh vendor/globalxtreme/compress-file/src/go/install-moduls.sh" from command line if you don't want to add it in "composer.json"
sh vendor/globalxtreme/compress-file/src/go/install-moduls.sh
Local
If you install this package in local (mac or windows or etc), you can temporarily disable or remove "sh vendor/globalxtreme/compress-file/src/go/install-moduls.sh" from "composer.json" and run this script.
cd vendor/globalxtreme/compress-file/src/go
go build -o resize-image resizeImage.go
go build -o resize-video resizeVideo.go
Video Compress
For video compress, you must be install "ffmpeg" on your device (mac, windows, linux)