PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Josantonius   PHP License System   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP License System
Manage PHP applications license keys
Author: By
Last change:
Date: 6 years ago
Size: 852 bytes
 

Contents

Class file image Download
<?php
/**
 * Licensing and applications manager.
 *
 * @author Josantonius <hello@josantonius.com>
 * @copyright 2017 - 2018 (c) Josantonius - License Handler
 * @license https://opensource.org/licenses/MIT - The MIT License (MIT)
 * @link https://github.com/eliasis-framework/license-handler.git
 * @since 1.0.1
 */
session_start();

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

use
Josantonius\File\File;

/*
 * Clone complement.
 */
$plugin = 'license-handler';

$path = 'sample-app/plugins';

File::deleteDirRecursively(__DIR__ . '/sample-app/plugins/');

File::copyDirRecursively(
   
__DIR__ . '/../config/',
   
__DIR__ . "/$path/$plugin/config/"
);

File::copyDirRecursively(
   
__DIR__ . '/../src/',
   
__DIR__ . "/$path/$plugin/src/"
);

copy(
   
__DIR__ . "/../$plugin.json",
   
__DIR__ . "/$path/$plugin/$plugin.json"
);