PHP code example of formula21 / php-core

1. Go to this page and download the library: Download formula21/php-core 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/ */

    

formula21 / php-core example snippets


     > interface MyFilesystemComponentInterface extends \Anweshan\Filesystem\FilesystemInterface
     > {
     >    # Some code blocks
     > }
     > 

         > try{
         >  // Some code block
         > }catch(\Anweshan\Filesystem\Directory\DirectoryException $e){
         >  var_dump($e);
         > }
         > 

       $x = new \Anweshan\Util\Argument();
       $x->y = 24;
       $key = 'User'
       $x->$key = array();
       foreach(\Anweshan\Util\Argument::get_object_vars($x) as $k=>$v){
        var_dump($k.'=>'.$v);
       }
       
cmd
$ composer 
cmd
$ php composer.phar