Skip to content

otobank/php-crowi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-crowi

PHP Library for Crowi

Usage

<?php

require_once __DIR__ . '/vendor/autoload.php';

$crowi = new Crowi\Crowi([
    'mongodb_url' => getenv('MONGO_URL'),
]);

$md = new Parsedown();

$pages = $crowi->Page->findBy([
    'path' => new \MongoRegex('/^\/user\/riaf/'),
    'grant' => Crowi\Document\Page::GRANT_PUBLIC,
], null, 5);

foreach ($pages as $page) {
    var_dump($page->getPath());
    var_dump($md->text($page->getRevision()->getBody()));
}

Releases

No releases published

Packages

No packages published

Languages