CASSIS is universal javascript/PHP that works on the client and the server for scalable application logic.
JavaScript PHP
Latest commit a5e4f4c Dec 13, 2016 1 @tantek update to CC by sa 4 for GPL compat
Per request from @mattl, update license to from CC by-sa 3.0 to 4.0.
Permalink
Failed to load latest commit information.
js-tests
php-tests add tests for NewBase60, fix NewBase60 in PHP (#17) Jan 24, 2016
test-data add tests for NewBase60, fix NewBase60 in PHP (#17) Jan 24, 2016
.gitignore
README.md refactor tests, adds PHP tests Jan 24, 2016
cassis.js update to CC by sa 4 for GPL compat Dec 13, 2016
cassis.php fix space around comma Apr 4, 2016
composer.json
contributors.txt add tests for ellipsizing, add readme, signed contributors Jan 24, 2016
package.json refactor tests, adds PHP tests Jan 24, 2016
phpunit.xml add tests for ellipsizing, add readme, signed contributors Jan 24, 2016
post-process.php adds a post-processing step to publish the PHP package Jan 24, 2016

README.md

cassis.js

http://cassisjs.org

Including CASSIS

Use the following code to include cassis.js:

Clientside in HTML:

<script type="text/javascript" src="cassis.js"></script>

Serverside in PHP:

include 'cassis.php';

In PHP using Composer:

  "require": {
    "tantek/cassis": "0.1.*"
  },
require_once 'vendor/autoload.php';

Tests

To run the PHP tests:

$ phpunit.phar

To run the JS tests:

$ tape js-tests/*.js | tap-spec

or if you don't have tape and tap-spec installed globally, then

$ ./node_modules/tape/bin/tape js-tests/*.js | ./node_modules/tap-spec/bin/cmd.js