Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

loklak_php_api

> 编程语言
Open source

The PHP Library for accessing loklak.org

1.1K stars0 likes0 views
WebsiteGitHub

About

The PHP Library for accessing loklak.org

Loklak PHP

This is the PHP Client and PHP API for accessing the Loklak API It contains a series of calls that could be directly used for the requested JSON responses

This library is bundled with Requests library in PHP keeping it standalone and works by just plugging it into the lib/ folder.

This is intended to be the generic PHP request library to loklak for integration into PHP websites and CMS frameworks like wordpress, drupal, joomla etc..,

How to run PHPUnit tests?

*AMP Solution Stack or Command Line Users

Install PHPUnit using phar or composer. Refer to this for installation details.

Once PHPUnit is installed, open XAMPP shell(for Windows users) / Terminal (for Ubuntu/Mac Users). Go to project root and type the following command: phpunit Tests This will execute all tests in Tests directory.

##Wordpress plugin developers

To include loklak API support to your plugin. Follow the undermentioned steps:

  1. Add loklak_php_api submodule to your plugin directory
    git submodule add https://github.com/loklak/loklak_php_api.git

  2. Include loklak settings in your plugin settings option_page

  3. Include Lib/loklak-api-admin.php and loklak.php in your plugin logic files as need be.

  4. Loklak settings are stored as an array (loklak-settings) in your wordpress database.

##Plugins with Loklak Integration

The complete list of Wordpress plugins with Loklak Integration is present here.

To test the plugins, refer to this sample wordpress installation.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言