Skip to content

hiagodotme/phpjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published