PHP code example of icodestuff / ladocumenter

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

    

icodestuff / ladocumenter example snippets


 /**
  * @Group(name="Foo", description="This is an example group.")
  */
 class FooController extends Controller
 {
 
 }
 

class FooController extends Controller
{
    /**
    * @Endpoint(name="Example", description="This is an example endpoint.")
     */
    public function bar()
    {
    
    }
}

class FooController extends Controller
{
    /**
    * @BodyParam(name="foo", type="string", status="

class FooController extends Controller
{
    /**
    * @QueryParam(name="foo", type="string", status="optional", description="An example query paramater", example="bar")
     */
    public function bar()
    {
    
    }
}

class FooController extends Controller
{
    /**
    * @ResponseExample(status=200, file="responses/example.json")
     */
    public function bar()
    {
        return response()->json(['foo' => 'bar']);
    }
}