This study reviews the elements of incremental plasticity theory in an elastoplastic formulation of the behaviour at the material point and its implementation. It is also computed the analytical derivatives of the principal invariants and eigenvalues, due its importance in plastic flow rules. The constitutive models of Drucker-Prager and Mohr-Coulomb are presented. It is also exposed the class framework behind the object oriented code, and, finally, are presented some uniaxial tests results.