PHP code example of chat-agency / laravel-backend-component
1. Go to this page and download the library: Download chat-agency/laravel-backend-component 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/ */
chat-agency / laravel-backend-component example snippets
use ChatAgency\BackendComponents\MainBackendComponent;
$button = new MainBackendComponent('inline.button');
use ChatAgency\BackendComponents\Builders\ComponentBuilder;
use ChatAgency\BackendComponents\Enums\ComponentEnum;
$button = ComponentBuilder::make(ComponentEnum::BUTTON);
use ChatAgency\BackendComponents\Builders\ComponentBuilder;
use ChatAgency\BackendComponents\Enums\ComponentEnum;
$divWithButton = $button = ComponentBuilder::make(ComponentEnum::DIV)
->setContent(
ComponentBuilder::make(ComponentEnum::BUTTON)
->seContent('Click me!')
);
use ChatAgency\BackendComponents\Builders\ComponentBuilder;
use ChatAgency\BackendComponents\Enums\ComponentEnum;
$button = ComponentBuilder::make(ComponentEnum::BUTTON)
->setTheme('theme_file', 'theme_name');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.