PHP code example of qycloud / classloader

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

    

qycloud / classloader example snippets



sLoader = new CloassLoader();
$classLoader->addPrefix('Models', __DIR__);
$classLoader->register();
json
 {
    "p": ">=5.4.0",
        "nanjingboy/classloader": "*"
    }
}

application
├── models
│   └─── user.php