Download the PHP package abdelhamiderrahmouni/prodtools without Composer
On this page you can find all versions of the php package abdelhamiderrahmouni/prodtools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdelhamiderrahmouni/prodtools
More information about abdelhamiderrahmouni/prodtools
Files in abdelhamiderrahmouni/prodtools
Package prodtools
Short Description A set of tools i use to optimize my work.
License MIT
Homepage https://github.com/abdelhamiderrahmouni/prodtools
Informations about the package prodtools
Prodtools
A set of command line tools to help me ship code faster, made with laravel zero.
Available functionalities :
- Lang files translation.
- Assets images optimization.
-
files/folder/project compression
Documentation
General Use
Installation
You can install the package via composer:
add it to your PATH:
Usage
the package offers three main commands:
translations
This command will translate your lang files from the source language to the target language or languages, it supports multiple languages and can output the result in JSON format.
example:
The following translates the php files holding the translations from en language to fr and ar languages
and outputs folders for ar and fr languages.
The following translates the JSON files holding the translations from en language to fr and ar languages
and outputs the translations to ar.json and fr.json files.
You can find more details on superduper filament starter kit @riodwanto is the original author of the command, I just added the JSON output feature.
Assets optimization
The idea behind this command came from the need to optimize the images in the assets folder before shipping the application. As doing that manually is a tedious task, I decided to automate it.
This command will optimize the images in the assets folder.
Options :
pathis the path to the folder containing the images to optimize; by default it's public/assets.
Arguments :
--keepto keep the original images; by default it's false.--prefixto add a prefix to the original folder's name; by default it's "old_".--detailsto display the optimization details; by default it's false.
Project compression
This command will compress the project files and folders into a single archive file.
Options :
pathis the path to the folder to compress; by default it's the current directory.
Arguments :
--excludemention the files and folders to exclude from the archive; by default it's ".git,node_modules".--includeDirectories and files to make sure they are included in the zip.--output-name|namespecify the output file name; by default it's FolderName in snake case like "folder_name.zip".--chunk-sizeThe maximum size of each chunk in MB, 0 for no chunking.--excludes_fileA file containing directories and files to exclude from the zip (should be in the root of the project path) by default it will look for.prodtools_compress_excludes.
Get Random Images from Unsplash
This command will download random images from unsplash and save them in the specified folder.
Options :
folderis the folder where the images will be saved; by default the command will create a folder named local_images in the current path.
Arguments :
--amountis the number of images to download; by default it's 5.--sizeis the size of the images to download; by default it's 200x200.--termsis the search terms to use; by default it's empty.--multi-sizeis a flag to download multiple sizes of the images; by default it's false.--sizesis the sizes of the images to download; by default it's "200x200,1280x720".--amountsis the number of images to download for each size; by default it's "5,5"
example:
Development
build standalone application
Run the following command to build a standalone application:
You will then be able to execute it directly:
or on Windows:
License
Laravel Zero is an open-source software licensed under the MIT license.
All versions of prodtools with dependencies
ext-zip Version *
guzzlehttp/guzzle Version ^7.5
illuminate/http Version ^10.0
illuminate/collections Version ^10.0
intervention/image Version ^3.6
nunomaduro/termwind Version ^1.15.1
spatie/image-optimizer Version ^1.7