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
57 lines • 1.64 kB
TypeScript
export interface PhpInstallation {
version: string;
path: string;
iniPath: string;
extensionDir: string;
environment: string;
phpExecutable: string;
isActive: boolean;
architecture?: string;
threadSafety?: boolean;
configureCommand?: string;
buildDate?: string;
priority: number;
}
export interface PhpPaths {
iniPath: string;
extensionDir: string;
}
interface DetectionResult {
installations: PhpInstallation[];
activePhp?: PhpInstallation;
systemPhp?: PhpInstallation;
}
/**
* Comprehensive PHP installation scanner with streamlined feedback
*/
export declare function scanPhpInstallations(): PhpInstallation[];
/**
* Determines the appropriate paths for php.ini and extensions directory.
* Enhanced version with intelligent matching and fallbacks.
*/
export declare function determinePhpIniPaths(version?: string): PhpPaths;
/**
* Gets detailed detection results including active and system PHP
*/
export declare function getDetailedPhpDetection(): DetectionResult;
/**
* Validates a PHP installation with automatic permission handling
*/
export declare function validatePhpInstallation(installation: PhpInstallation): {
isValid: boolean;
issues: string[];
suggestions: string[];
needsSudo: boolean;
};
/**
* Finds the best PHP installation for a specific use case
*/
export declare function findBestPhpInstallation(criteria: {
version?: string;
environment?: string;
minVersion?: string;
architecture?: string;
threadSafety?: boolean;
}): PhpInstallation | null;
export {};
//# sourceMappingURL=phpEnvironmentUtils.d.ts.map