# booktics/1.0.3/booktics.php

Booktics – Appointment Booking Calendar for Service Businesses, version 1.0.3. 81 lines.

- Page: https://pluginprobe.com/plugins/booktics/1.0.3/code/booktics.php
- Raw: https://pluginprobe.com/plugins/booktics/1.0.3/raw/booktics.php
- Modified: 2025-07-10T13:13:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booktics/1.0.3/code/booktics.php#L10-L20`.

```php
<?php

/**
 * Plugin Name:       Booktics
 * Plugin URI:        https://arraytics.com/booktics/
 * Description:       Schedule, Appointment and Seat Booking plugin.
 * Version:           1.0.3
 * Requires at least: 5.2
 * Requires PHP:      7.4
 * Author:            Arraytics
 * Author URI:        https://arraytics.com/
 * License:           GPL v2 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       booktics
 * Domain Path:       /languages

 * Booktics is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * any later version.

 * Booktics Essential is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Booktics. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package Booktics
 * @category Core
 * @author Arraytics
 * @version 1.0.1
 */

use Booktics\Booktics;
use Booktics\Providers\Global_Service_Provider;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;


require_once __DIR__ . '/vendor/autoload.php';


// Define constant for the Plugin file.
defined( 'BOOKTICS_FILE' ) || define( 'BOOKTICS_FILE', __FILE__ );
defined( 'BOOKTICS_DIR' ) || define( 'BOOKTICS_DIR', __DIR__ );

global $booktics_container;

$booktics_container = new \Booktics\Container\Container();

$booktics_container->addServiceProvider( 'global', Global_Service_Provider::class );

/**
 * Booktics container
 *
 * @return  \Booktics\Container\Container
 */
function booktics_container() {
    global $booktics_container;

    return $booktics_container;
}

/**
 * Load Booktics Plugin when all plugins loaded.
 *
 * @return Booktics The singleton instance of Booktics.
 */
function booktics() {
    add_action( 'admin_init', 'booktics_handle_conflicting_plugins' );
    add_action( 'admin_notices', 'booktics_show_conflict_deactivation_notice' );

    return Booktics::instance();
}

// Let's go.
booktics();

```
