PHP code example of topthink / think-container
1. Go to this page and download the library: Download topthink/think-container 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/ */
topthink / think-container example snippets
namespace think;
class App
{
public function name(){
return 'app';
}
namespace app\facade;
use think\Facade;
class App extends Facade
{
/**
* 获取当前Facade对应类名
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return '\think\App';
}