PHP code example of dcplibrary / papiaccount

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

    

dcplibrary / papiaccount example snippets


use Dcplibrary\PAPIAccount\PAPIAccount;

$instance = new PAPIAccount();
echo $instance->name(); // PAPIAccount
echo $instance->version(); // 1.0.0

use Dcplibrary\PAPIAccount\Facades\PAPIAccount;

PAPIAccount::name(); // PAPIAccount
PAPIAccount::version(); // 1.0.0
`bash
    ->withMiddleware(function (Middleware $middleware): void {
        $middleware->alias([
            'access.secret' => Dcplibrary\PAPIAccount\App\Http\Middleware\AccessSecret::class,
        ]);
        $middleware->trustProxies(
            at:'*',
            headers: Request::HEADER_X_FORWARDED_FOR |
            Request::HEADER_X_FORWARDED_HOST |
            Request::HEADER_X_FORWARDED_PORT |
            Request::HEADER_X_FORWARDED_PROTO
        );
    })
bash
php artisan vendor:publish --tag="papiaccount-config"
bash
composer analyse