PHP code example of aichenk / tp6-session

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

    

aichenk / tp6-session example snippets


// app/AppService.php 文件
public function register()
{
    // 服务注册
    $this->app->bind('session', function() {
        return invoke(\KaySess\Session::class);
    });
    // ...
}