PHP code example of nhagemann / anycontent-backend

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

    

nhagemann / anycontent-backend example snippets



return [
    // ...
    AnyContent\Backend\AnyContentBackendBundle::class => ['all' => true],
];
yaml
    # some in memory users
    providers:
        users_in_memory:
                memory:
                    users: # get new password hash via php -r "echo password_hash('****', PASSWORD_BCRYPT, ['cost' => 13]) . PHP_EOL;"
                        yourusername: { password: 'puthashhere', roles: [ 'ROLE_ANYCONTENT' ] }