PHP code example of ajthinking / anything

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

    

ajthinking / anything example snippets


// This class does not exist, yet
App\Support\Git::client()
  ->pull()
  ->add('*')
  ->nah()
  ->wip()
  ->unwip()
  ->commit('message')
  ->push()
  ->build() // <-- creates the class!



namespace App\Support;

class Git
{
    public static function client()
    {
        return new static();
    }
    
    public function pull()
    {
        return $this;
    }
    
    public function add()
    {
        return $this;
    }

	// ...
}



namespace App\Support\Facades;

use Illuminate\Support\Facades\Facade;

class Zonda extends Facade
{
    protected static function getFacadeAccessor()
    {
        return 'App\\Zonda';
    }
}