1. Go to this page and download the library: Download soyhuce/dev-tools 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/ */
soyhuce / dev-tools example snippets
'Debug' => \Soyhuce\DevTools\Debug\Debug::class,
php artisan make:model User -m -f
for ($i=0; $i<100; $i++) {
if (rand(0,1) === 0) {
\Soyhuce\DevTools\Debug\Debug::incrementCounter('zeros');
} else {
\Soyhuce\DevTools\Debug\Debug::incrementCounter('ones');
}
}
function foo(array $values)
{
\Soyhuce\DevTools\Debug\Debug::incrementCounter('foo', count($values));
}
foo([1,2,3]);
foo([4,5]);
foo([6,7,8,9]);
function foo(string $arg)
{
\Soyhuce\DevTools\Debug\Debug::message("foo with '${arg}'");
}
foo('bar');
class ExampleTest extends TestCase
{
public function testBasicTest()
{
$this->get('/?foo=bar')->assertOk();
}
}
class ExampleTest extends TestCase
{
public function testBasicTest()
{
$this->getJson('api/users/1')->assertOk();
}
}