PHP code example of webx-ui / module-team

1. Go to this page and download the library: Download webx-ui/module-team 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/ */

    

webx-ui / module-team example snippets


// config/webx-team.php
return [
    'networks' => [
        'facebook' => 'Facebook',
        'instagram' => 'Instagram',
        'linkedin' => 'LinkedIn',
        'x' => 'X',
        'telegram' => 'Telegram',
        'youtube' => 'YouTube',
        'tiktok' => 'TikTok',
        'vk' => 'VK', // a site's own
    ],
];

[
    'id' => 12,
    'anchor' => 'member-12',
    'categories' => [],            // the contract of a collection asks for the key
    'name' => 'Anna Petrova',
    'initials' => 'AP',            // what stands in for a missing photo
    'job_title' => 'Orthodontist', // '' when there is none
    'text' => "…\n…",              // '' when it is not written in the language
    'photo' => ['url' => …, 'thumb' => …, 'width' => …, 'height' => …, 'alt' => …], // or null
    'socials' => [['network' => 'instagram', 'label' => 'Instagram', 'url' => 'https://…']],
    'service_links' => [['id' => 3, 'title' => 'Braces', 'url' => '/braces']], // [] without services
    'fields' => ['experience' => '12'], // the project's own fields, by name
]
bash
composer migrate
php artisan webx:blocks:offered --install --module=team