php-ini-automation
Version:
Ultimate Laravel-optimized PHP configuration tool that automatically detects and configures PHP installations across all environments with Laravel 10+ specific extensions, performance settings, and security configurations
19 lines • 1.06 kB
TypeScript
/**
* Validates that the source php.ini file exists and is readable (with sudo support).
*
* @param filePath - Path to the php.ini file.
* @param useSudo - Whether to use sudo for file operations.
* @throws If the file does not exist or is not readable.
*/
export declare function validateSourceFile(filePath: string, useSudo?: boolean): void;
/**
* Enhanced PHP ini customization with detailed feedback and automatic sudo handling.
*
* @param filePath - Path to the php.ini file to be customized.
* @param extensionsDir - Directory containing PHP extensions.
* @param customSettings - Key-value pairs of additional php.ini settings to add/update.
* @param useSudo - Whether to use sudo for file operations (auto-detected on Unix).
* @param phpExecutable - Path to PHP executable for checking loaded modules.
*/
export declare function customizePhpIni(filePath: string, extensionsDir: string, customSettings?: Record<string, string | number>, useSudo?: boolean, phpExecutable?: string): Promise<void>;
//# sourceMappingURL=phpIniManager.d.ts.map