Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tantek/cassis
CASSIS is universal javascript/PHP that works on the client and the server for scalable application logic.
https://github.com/tantek/cassis
Last synced: 12 days ago
JSON representation
CASSIS is universal javascript/PHP that works on the client and the server for scalable application logic.
- Host: GitHub
- URL: https://github.com/tantek/cassis
- Owner: tantek
- Created: 2011-01-05T01:48:03.000Z (almost 14 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T17:41:53.000Z (5 months ago)
- Last Synced: 2024-10-14T17:09:28.306Z (about 1 month ago)
- Language: PHP
- Homepage: http://cassisjs.org/
- Size: 331 KB
- Stars: 128
- Watchers: 8
- Forks: 11
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cassis.js
=========CASSIS stands for: client and server scripting implementation subset.
Conceived [in late 2008](http://twitter.com/t/statuses/916632211), 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 background see:
http://cassisjs.orgIncluding CASSIS
----------------Use the following code to include cassis.js locally from your server:
Clientside in HTML:
```
```
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:
* https://tantek.com/cassis.jsIf you're curious or want to try a version potentially newer than the cassis.js published here.