PHP code example of sahusoftcom / articlebuilder-net-laravel

1. Go to this page and download the library: Download sahusoftcom/articlebuilder-net-laravel 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/ */

    

sahusoftcom / articlebuilder-net-laravel example snippets


SahusoftCom\ArticleBuilder\ArticleBuilderProvider::class


namespace App;
 
use SahusoftCom\ArticleBuilderService;
use SahusoftCom\XMLRPClientWordpress;

class NewService
{	
	// Example to use ArticleBuilder Service
	public function firstMethod()
	{
		$object = new ArticleBuilderService($username, $password);
		$object->authenticate();
	}
	
	// Example to use XMLRPClientWordpress Service
	public function secondMethod()
	{
		$object = new XMLRPClientWordpress($xmlrpccurl, $username, $password);
		$blogId = $object->createPost($title, $body, $category, $keywords, $encoding);
	}


	Returns:
		[Key]		[Value]
		success		true
		output		(the category list--PHP array or XML table)