PHP code example of apix / autoloader

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

    

apix / autoloader example snippets


    
        loader::init();
  

    
         = array('path/to/libs', 'path/to/vendor'); // paths to prepend
        $append  = array('path/to/last/dir');               // paths to append
        Apix\Autoloader::init($prepend, $append);
  

  
      r = new Apix\Autoloader;
      $loader->prepend('path/my/libs')
             ->prepend('path/vendors')
             ->append('some/other/path');

      $loader->register(true);  // True to take precedence on registered autoloaders.
                                // False (the default) to follow the stack order.
xml
    <dependencies>
      <<name>apix_autoloader</name>
          <channel>pear.ouarz.net</channel>
          <min>1.0.0</min>
          <max>1.999.999</max>
        </package>
      </