PHP code example of mridang / pearify
1. Go to this page and download the library: Download mridang/pearify 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/ */
mridang / pearify example snippets
namespace MyName\MyProject;
use DateTime;
class MyClass {
public function getDate() {
return new DateTime("2014-10-20");
}
}
class MyName_MyProject_MyClass {
public function getDate() {
return new DateTime("2014-10-20");
}
}
composer dump-autoload --optimize