PHP code example of lispa / amos-community

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

    

lispa / amos-community example snippets


 'community' => [
	'class' => 'open20\amos\community\AmosCommunity',
	'showSubcommunities' => false, //changed property (default was true)
 ],
 

'community' => [
    'class' => 'open20\amos\community\AmosCommunity',
    'communityType' => \open20\amos\community\models\CommunityType::COMMUNITY_TYPE_CLOSED,
],

'community' => [
    'class' => 'open20\amos\community\AmosCommunity',
    'communityRequiredFields' => ['name', 'community_type_id']
],

'community' => [
    'class' => 'open20\amos\community\AmosCommunity',
    'communityRequiredFields' => [
        'model/class/path',
    ]
],

 'htmlMailContent' => [
        'welcome' => '@backend/mail/community/welcome'
        'change-role => '@backend/mail/community/change-role', //CHANGE_ROLE
    ],