1. Go to this page and download the library: Download phil/spaces 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/ */
phil / spaces example snippets
use Phil\Spaces\InMemorySpaceStore;
use Phil\Spaces\ModuleDefinition;
use Phil\Spaces\ModuleRegistry;
use Phil\Spaces\Permission;
use Phil\Spaces\SettingDefinition;
use Phil\Spaces\SpaceRef;
use Phil\Spaces\Spaces;
use Phil\Spaces\Tab;
$spaces = new Spaces(new ModuleRegistry([
new ModuleDefinition('members', 'Members', tab: new Tab('space_members', 'Members')),
new ModuleDefinition(
'forum',
'Forum',
kinds: ['group'],
forum, then members
$view->allows(['member'], 'forum.post'); // true
$view->setting('forum', 'slow_mode'); // true
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.