<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Forum; $poster = new mPoster(); $post = new Post(); $post->addForum(new Forum('general'))->setTitle('hello world')->setContent('this is my [b]test[/b]'); $vanilla = $poster->createProvider('Vanilla'); $vanilla->setUsername('admin')->setPassword('admin')->setUrl('http://vanilla.dev')->create($post);
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Topic; $poster = new mPoster(); $post = new Post(); $post->setTopic(new Topic(8))->setTitle('hello world' . mt_rand())->setContent('this is my [b]test[/b]' . mt_rand()); $mybb = $poster->createProvider('MyBB'); $mybb->setUsername('admin')->setPassword('admin')->setUrl('http://mybb.dev')->reply($post);
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Forum; $poster = new mPoster(); $post = new Post(); $post->setForums([new Forum(2), new Forum(3)])->setTitle('hello world' . mt_rand())->setContent('this is my [b]test[/b]' . mt_rand()); $mybb = $poster->createProvider('MyBB'); $mybb->setUsername('admin')->setPassword('admin')->setUrl('http://mybb.dev')->create($post);
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Forum; $poster = new mPoster(); $post = new Post(); $post->addForum(new Forum(2))->setTitle('hello world')->setContent('this is my [b]test[/b]'); $phpbb = $poster->createProvider('Phpbb'); $phpbb->setUsername('admin')->setPassword('test1234')->setUrl('http://phpbb.local')->create($post);
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Forum; $poster = new mPoster(); $post = new Post(); $post->addForum(new Forum(1.0))->setTitle('hello world')->setContent('this is my [b]test[/b]'); $smf = $poster->createProvider('Smf'); $smf->setUsername('admin')->setPassword('admin')->setUrl('http://smf.dev')->create($post);
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Autobot\Poster\mPoster; use Autobot\Poster\Model\Post; use Autobot\Poster\Model\Topic; $poster = new mPoster(); $post = new Post(); $post->setTopic(new Topic(4.0))->setTitle('hello world')->setContent('this is my [b]test[/b]'); $smf = $poster->createProvider('Smf'); $smf->setUsername('admin')->setPassword('admin')->setUrl('http://smf.dev')->reply($post);