PHP code example of isappit / ifile
1. Go to this page and download the library: Download isappit/ifile library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
isappit / ifile example snippets
// Define external configuration file ( if not defined, IFile use: src/Config/xml/IFileConfig.xml in vendor )
$fileConfig = "/Users/isapp/Sites/personal/github/ifile/IFileConfig.xml";
// try/catch
try {
// IMPORTANT:
// if use a external Configuration file is need to set external configuration file first to instance IFileFactory
IFileConfig::setXmlConfig($fileConfig);
// instance IFileFactory
$IFile = IFileFactory::getInstance();
.....