Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

[Free Add-on ] XenForo SDK 0.0.1

Software Development Kit

  1. XenForo Rocks
    Visible Branding:
    Simple SDK to allow using the XenForo Classes, Helpers, Templates etc.. outside of the XenForo Scope.

    • Check if user is logged in
    • Login
    • Logout
    • Validate Login Information
    • Verify Username
    • Verify Email
    • Encrypt/Validate Passwords
    • Create Users
    • Get current user/visitor information
    • Get forum/forums (using ids or conditions)
    • Get thread/threads (using ids or conditions)
    • Render Public/Admin Templates
    • Get all options
    • Get single option
    Contribution/Suggestions are welcome. Please use the following repository for changes:


    $sdk = new XenForoSDK;

    $loggedIn $sdk->isLoggedIn();
    $loggedIn) {
    'Logged In';
    } else {

    // Validate loing
    $valid $sdk->validateLogin([email protected]''password'$rememberMe$loginUserIfSuccessful);

    $valid !== true) {
    $valid// will display the error

    // Login user
    $user $sdk->login($userId$rememberMe); // no validation

    // Logout

    // Hash password
    $passwrod $sdk->setPassword('test123''passward_confirm'); // returns array scheme_class and data

    // Add new user
    $newUser $sdk->addUser([email protected]''myusername''mypassword', array('someotherdata' => 'someothervalue'));
    is_object($newUser)) {
    // user was not created show error
    echo $newUser;
    } else {
    // user created, $newUser holds id
    echo 'New User ID: ' $newUser;

    // Get all forums
    $forums $sdk->getForums();

    // Get one forum
    $forum $sdk->getForumById(2);

    // Get all threads
    $threads $sdk->getThreads(array()); // will show all so make sure to add conditions

    // Get one thread
    $thread $sdk->getThreadById(2);

    // Get current user
    $user $sdk->getUser();

    // Get other user info
    $user $sdk->getUser(2);

    // Get current visitor/session info
    $visitor $sdk->getVisitor();
    $session $sdk->getSession();

    // Get options/option
    $options $sdk->getOptions();
    $option $sdk->getOption($key);

    // Render public/admin template
    $output $sdk->renderPublicTemplate('template_name', array $params);
    $output $sdk->renderAdminTemplate('template_name', array $params);
    LeafyDev likes this.
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Like us on Facebook

  • Buy us a beer!

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!