PHP Classes

File: tests/download.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/download.php   Download  
File: tests/download.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 1 year ago
Size: 558 bytes
 

Contents

Class file image Download
<?php

require_once '../src/Mind.php';

$Mind = new Mind();

print_r($Mind->download('../contributing.md',array('path'=>'../download')));

print_r($Mind->download('https://github.com/fluidicon.png',array('path'=>'../download')));

$links = array(
   
'https://github.com/aliyilmaz/Mind/archive/master.zip',
   
'https://github.com/aliyilmaz/PhoneBook/archive/master.zip',
   
'../license.md',
   
'https://github.com/aliyilmaz/pure-blog/archive/master.zip'
);
print_r($Mind->download($links, array('path'=>'../download')));

print_r($Mind->download($links));