PHP code example of xuchunyang / think-tinker
1. Go to this page and download the library: Download xuchunyang/think-tinker 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/ */
xuchunyang / think-tinker example snippets
User::limit(1)->select()
Db::table('user')->where('id', 1)->find()
bash
composer rvice:discover
php think vendor:publish
bash
php think tinker
php think tinker --execute="User::count()"