Skip to content

vline/vline-php-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Sample PHP app built with vline.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published