Functionally Equivalent Language Translation →
(defclass class-name | (class-name superclass-name) (:implements IName-1 IName-2 ...IName-N) (mvar ...) ; define member data (cvar ...) ; define class data (const ...) ; define constants (defun ...) ; define member / class functions )
See also CLASS MVAR CVAR CONST THIS MY MCALL / -> CLASS-CALL / ::
This is the FELT instruction that allows you to define a 'class' in the object-oriented paradigm. The CLASS
instruction is a synonym for this one and can be used interchangeably and is done for easier migration towards Lisp in the future.
All of the various parts of defining classes for PHP have been detailed in this document, Coding for PHP. Please refer to that page for instructions on how to code classes in PHP.
JavaScript doesn't really have classes although it is possible to produce something that walks like a class, talks like a class and smells like a class. Please refer to Coding for JavaScript / Node.js