Giter Site home page Giter Site logo

sameersemna / phpjs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from locutusjs/locutus

1.0 2.0 0.0 22.6 MB

php.js implements PHP functions in JavaScript

Home Page: http://phpjs.org

License: Other

CSS 0.81% JavaScript 94.22% Ruby 1.00% PHP 3.97%

phpjs's Introduction

php.js

Build Status NPM version Dependency Status Development Dependency Status

php.js is a resource that offers community-built JavaScript alternatives to PHP functions.

More info at: http://phpjs.org/about

Npm

$ mkdir test && cd $_
$ npm install phpjs
$ $EDITOR try.js
var php = require('phpjs');

php.echo(php.sprintf('Hey, %s : )', 'you'));
php.echo(php.parse_url('mysql://kevin:[email protected]/databasename')['pass']);
php.echo(php.strtotime('2 januari 2012, 11:12:13 GMT'));
$ node try.js
Hey, you : )
abcd1234
1325502733

Testing

cli

make test
node bin/phpjs.js --action test --name sort
node bin/phpjs.js --action test --category array

Web

PORT=8080 node test/browser/server.js

Point your webbrowser to http://localhost:8080

Sponsor development

Gittip donate button Flattr donate button PayPal donate button BitCoin donate button

phpjs's People

Contributors

kvz avatar brettz9 avatar kukawski avatar onnomarsman avatar theriault avatar glenara avatar reggino avatar yadimon avatar codemasher avatar louisstow avatar infusion avatar marcuswestin avatar tersmitten avatar ironmagma avatar tholum avatar joni2back avatar mio-koduki avatar mfaber avatar mackshot avatar ivanca avatar evgenius avatar shnoulle avatar camille-hdl avatar ducksmanager-admin avatar rc5hack avatar amatiasq avatar rudloff avatar unrob avatar slopjong avatar ryantenney avatar

Stargazers

Sameer Shemna avatar

Watchers

Sameer Shemna avatar  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.