<?php
/**
 * Plugin Name: KC Shared Library
 * Description: Provides shared PHP libraries (dompdf, razorpay-php, etc.) for KC custom plugins.
 * Version: 1.0.0
 * Author: KC Paite
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'KC_SHARED_LIB_PATH', plugin_dir_path( __FILE__ ) );

/**
 * Shared Autoloader - can be used by other plugins if they need to check for existence.
 */
function kc_shared_library_get_autoloader() {
	$autoloader = KC_SHARED_LIB_PATH . 'vendor/autoload.php';
	return file_exists( $autoloader ) ? $autoloader : false;
}

// Optionally, we could include the autoloader here globally, but it's better if plugins call it explicitly to avoid conflicts.
