Skip to content
CASSIS is universal javascript/PHP that works on the client and the server for scalable application logic.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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
cassis-lab.php auto_url_summary eb upcoming calagator iw events Jul 22, 2018
cassis.js
cassis.php
composer.json adds a post-processing step to publish the PHP package Jan 24, 2016
contributors.txt
package.json
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

CASSIS stands for: client and server scripting implementation subset.

Conceived in late 2008, the goal of the CASSIS Project is universal javascript (JS) that works on the client and the server for scalable application logic. The primary use-case is writing code to implement application logic that runs in browsers, especially dynamic interfaces that make use of XMLHTTPRequest (XHR/AJAX/AHAH), and also runs on web servers.

Until typical hosting companies support running JS on the server, CASSIS code must run in at least two programming language environments, JS on the client, and something that can be made to resemble JS on typical hosting company servers, which turns out to be PHP.

For more see: 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:

$ npm test

Experimental live

Experimental CASSIS improvements and additions are tested live here:

If you're curious or want to try a version potentially newer than the cassis.js published here.

You can’t perform that action at this time.