hiagodotme / phpjs

PHPJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhpJS

Phpjs is a framework to help you use PHP methods in javascript.

  • Simple to use
  • On-demand method loading

New Features!

  • The str_replace method is now available
  • $ _GET is now available

Installation

First download the latest version of our repository.

Include file phpjs.min.js in your page.

<script src="dist/phpjs.min.js"></script>

Install the methods you want to use

<script>phpjs.setup(['$_GET','str_replace'])</script>

Using methods:

phpjs.$_GET['variable']; //return the $_GET variable value.
phpjs.str_replace('hi', 'hello', 'hello how are you?'); //return hi how are you?

Development

Want to contribute? Great! PhpJS uses Gulp for fast developing.

Open your favorite Terminal and run these commands.

First Tab (enter in root phpjs folder and run):

$ npm install gulp gulp-uglify gulp-rename gulp-concat -g
$ npm install
$ gulp

Author

License

MIT

About

PHPJS

License:MIT License


Languages

Language:JavaScript 99.9%Language:HTML 0.1%