Giter Site home page Giter Site logo

loklak_php_api's Introduction

Loklak PHP

Build Status Coverage Status Dependency Status

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

    <?php 
        settings_fields( 'loklak-settings' );
        do_settings_sections( 'loklak-settings' );
    ?>
    
  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.

loklak_php_api's People

Contributors

sopankhosla avatar sudheesh001 avatar daminisatya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.