Giter VIP home page Giter VIP logo

vline-php-example's Introduction

vLine PHP Example

Sample PHP app that demonstrates vLine API integration.

Getting Started

  1. Sign up for a vLine developer account and create your vLine service.

  2. Make note of your API Secret on the Service Settings tab in the vLine Developer Console.

  3. Make sure you have MySQL installed and running on your computer.

    • If your installation did not set a password for the root user (e.g., Homebrew on OSX), you can set it with: mysqladmin -u root password mynewpassword

    • If using the default PHP installation on OSX, you may need to copy /etc/php.ini.default to /etc/php.ini and set mysqli.default_socket to /tmp/mysql.sock:

        sudo cp /etc/php.ini.default /etc/php.ini
        sudo vim /etc/php.ini
      
        # Find "mysqli.default_socket" and set it to:
        mysqli.default_socket = /tmp/mysql.sock
      
  4. Clone this repository.

  5. Add your Service ID and API Secret to the vline-php-example/classes/Vline.php file.

  6. Run the server.sh script to automatically start Apache. (If you prefer, you can use any other webserver to serve up the vline-php-example directory.)

  7. In your browser go to http://localhost:8080 and follow the application installation steps.

  8. In your browser, go to http://localhost:8080/admin/

  9. Add at least one additional user.

  10. Open http://localhost:8080 in one regular browser window and one incognito window.

  11. Log in as different users in the two windows.

  12. Click on a username to call that user.

vline-php-example's People

Contributors

kashr avatar thughes avatar

Watchers

James Cloos avatar Sin Boutkaska 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.