Basic Use - GoScribble/Scribble GitHub Wiki
Have you completed the installation?
Now that Scribble is installed, configured and the Bridges for the providers you use have been set up it's time for a basic example. This is how we post to all available providers.
use Scribble\Publisher;
$post = Publisher::all()->create([
"post_title" => "Hey over there.",
"post_content" => "Is the grass green like they say it is?"
]);
if ($post) {
echo "Success";
} else {
echo "Ooops, something went wrong.";
}
Scribble uses a lot of method chaining to get the job done, the all() method tells Scribble that we want to publish to all available providers, create() accepts an array of "post_title" and "post_content" - hopefully that's all self explanatory.
Publisher will return true on success or false (and an exception) on failure.