PHP code example of dengpju / php-gen

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

    

dengpju / php-gen example snippets


php bin/hyperf.php vendor:publish dengpju/php-gen

php bin/hyperf.php dengpju:controller name=test path="Test"

php bin/hyperf.php dengpju:dao model=all --conn=default --modelPath=Default

php bin/hyperf.php dengpju:dao model=ModelName --conn=default --modelPath=Default

php bin/hyperf.php dengpju:entity model=all --conn=default --modelPath=Default

php bin/hyperf.php dengpju:entity model=ModelName --conn=default --modelPath=Default

php bin/hyperf.php dengpju:model table=all --conn=default --prefix=fm_ --path=Default

php bin/hyperf.php dengpju:model table=table-name --conn=default --prefix=fm_ --path=Default

php bin/hyperf.php dengpju:service name=name path=path

php bin/hyperf.php dengpju:validate name=name path=path

php bin/hyperf.php dengpju:enum conn=default name=yes_or_no flag='是否:yes-1-是,no-2-否'

php bin/hyperf.php dengpju:code

php bin/hyperf.php dengpju:route server=http