A PHP CLI utility for finding and replacing text across files in a directory. Supports plain and regex-based replacements, case-insensitive matching, recursive directory scanning, extension filtering, and a dry-run preview mode.
- PHP 7.1+
| /** | |
| * Custom Physics2DPlugin for GSAP | |
| * A from-scratch implementation providing 2D physics simulation | |
| * (velocity, angle, acceleration, gravity, friction) | |
| * | |
| * Compatible with GSAP 3.x plugin API | |
| * Usage: gsap.registerPlugin(Physics2DPlugin) | |
| */ | |
| const Physics2DPlugin = { |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Gravatar API Client | |
| * | |
| * Handles avatar image URLs, profile data fetching, and QR code URLs | |
| * for Gravatar (gravatar.com) using both the public image API | |
| * and the authenticated REST API (Gravatar API v3). |
| <?php | |
| /** | |
| * CLI filename renamer with wildcard capture | |
| * | |
| * Example: | |
| * php replaceFilename.php --find=frontendadmin.*.php --replace=ts*.snippet.php --regex=* | |
| */ | |
| $options = getopt("", [ |
| <?php | |
| /** | |
| * Autoloader | |
| * | |
| * PSR-4 compliant autoloader with recursive directory scanning | |
| * and intelligent class file discovery | |
| * | |
| * @package Themantic | |
| * @version 2.0.0 |
| <?php | |
| if (php_sapi_name() !== 'cli') { | |
| exit("Run from CLI only.\n"); | |
| } | |
| function is_true($val, $return_null=false){ | |
| $boolval = ( is_string($val) ? filter_var($val, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) : (bool) $val ); | |
| return ( $boolval===null && !$return_null ? false : $boolval ); | |
| } |
| ;=# | |
| ; | |
| ; NSIS Associations Handler | |
| ; Provides functions for managing file types, protocols, and context menus | |
| ; by daemon.devin (daemon.devin@gmail.com) | |
| ; | |
| ; AVAILABLE FILETYPE MACROS | |
| ; ${GetFileTypeProgID} | |
| ; ${CheckFileTypeExists} | |
| ; ${GetFileTypeInfo} |
| /** | |
| * ActiveXObject Polyfill | |
| * Provides fallback implementations for common ActiveX objects | |
| * Note: This only works for specific objects and has limited functionality | |
| */ | |
| (function() { | |
| 'use strict'; | |
| // Skip if ActiveXObject already exists (IE) |
| ; RuntimeManager.nsh - Complete Runtime Detection, Download, and Installation | |
| ; Manages VC++ (2005-2022) and .NET (Framework/Core) redistributables | |
| ; Supports x86, x64, and ARM64 architectures | |
| !ifndef RUNTIME_MANAGER_NSH | |
| !define RUNTIME_MANAGER_NSH | |
| !ifndef LOGICLIB | |
| !include LogicLib.nsh | |
| !endif |
| ; ModernWinVer.nsh - Modern Windows Version Detection | |
| ; Optimized for Windows 10, 11, and current Server versions | |
| ; Extends and modernizes the standard WinVer.nsh | |
| !ifndef MODERN_WINVER_NSH | |
| !define MODERN_WINVER_NSH | |
| !include LogicLib.nsh | |
| ; Windows Version Constants (Major.Minor.Build) |