PHP code example of shaoyikai / api-doc

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

    

shaoyikai / api-doc example snippets


return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=api-doc',
    'username' => 'root',
    'password' => '1234', // 根据自己的环境填写
    'charset' => 'utf8',
];

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/www/api-doc/web"
    ServerName demo.api-doc.com
    ErrorLog "logs/api-doc.com-error.log"
    CustomLog "logs/api-doc.com-access.log" common

	<Directory "C:/www/api-doc/web">
		AllowOverride all
		Require all granted
	</Directory>
</VirtualHost>