PHPackages                             crazedsanity/cs-webapplibs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. crazedsanity/cs-webapplibs

ActiveLibrary[Database &amp; ORM](/categories/database)

crazedsanity/cs-webapplibs
==========================

Web application framework containing various libraries, an extension to cs-content

v0.11.5(11y ago)1380[13 issues](https://github.com/crazedsanity/cs-webapplibs/issues)1MITPHPPHP &gt;=5.3.0CI failing

Since Jan 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/crazedsanity/cs-webapplibs)[ Packagist](https://packagist.org/packages/crazedsanity/cs-webapplibs)[ Docs](https://github.com/crazedsanity/cs-webapplibs)[ RSS](/packages/crazedsanity-cs-webapplibs/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (41)Used By (1)

Web Application Libraries
-------------------------

[](#web-application-libraries)

Build status::: [![Build Status](https://camo.githubusercontent.com/85bc2623df112c9eafcc4a024b8a1e5ff71d62928fb3108d66a44813725446d9/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f63732d7765626170706c6962732e706e67)](https://travis-ci.org/crazedsanity/cs-webapplibs)

Library Deprecation...
======================

[](#library-deprecation)

This set of libraries, along with those it depends on from cs-content, is getting retired. The components are being moved into other, self-contained repositories. The hope is that this will allow for easier and more focused development. Here's the list so far:

- [AuthToken](https://github.com/crazedsanity/AuthToken) (replaces `cs_authToken`): [![Build Status](https://camo.githubusercontent.com/d1fae583582468faa9184454a59d3f6c19296fd4581001cda1e088ff681181ef/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f41757468546f6b656e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/AuthToken)
- [AuthUser](https://github.com/crazedsanity/authuser) (replaces `cs_authUser`): [![Build Status](https://camo.githubusercontent.com/a5b8ed7a10b99fc77bd3ef814da69c8cf98e472e1eaaea60f94d6d798ad0cc5d/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f61757468757365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/authuser)
- ID Obfuscator (replaces `cs_idObfuscator`): **(no replacement yet...)**
- [Lockfile](https://github.com/crazedsanity/lockfile) (replaces `cs_lockfile`): [![Build Status](https://camo.githubusercontent.com/26ff195dc159a7f9cbc6a50c461d2730434b59b24d08fc2dd1c7c6109f26da2d/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f6c6f636b66696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/lockfile)
- [Permission](https://github.com/crazedsanity/permission) (replaces `cs_permission`): [![Build Status](https://camo.githubusercontent.com/39e74bb1d0775c1ca770beaf08455365acdb5ea7ae866f3ea4fdb6d29d13586f/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f7065726d697373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/permission)
- [Database](https://github.com/crazedsanity/database) (replaces `cs_phpDB`): [![Build Status](https://camo.githubusercontent.com/4e40cc27695a1f262f0a5f530981007e6034cd5117938435d7d3ac44e3e062de/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f64617461626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/database)
- User Registration (replaces `cs_registerUser`): **(no replacement yet)**
- [DB Session](https://github.com/crazedsanity/dbsession) (replaces `cs_sessionDB`): [![Build Status](https://camo.githubusercontent.com/dec409abd767364791fc2de48a6a542acd96e29c1709c4e14843b0f08f06bcad/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f646273657373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/dbsession)
- [Site Config](https://github.com/crazedsanity/siteconfig) (replaces `cs_siteConfig`): [![Build Status](https://camo.githubusercontent.com/2e6fb3fc7a8c753ec1bb6c918cf81435a1c250b7482e439f12c2c2d2013252f5/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f73697465636f6e6669672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/siteconfig)
- Web DB Logger (replaces `cs_webdblogger`): **(no replacement yet...)**
- Web DB Upgrade (replaces `cs_webdbupgrade`): **(no replacement yet...)**

Other libraries of note:

- [FileSystem](https://github.com/crazedsanity/filesystem): [![Build Status](https://camo.githubusercontent.com/8a8d2748054c7254a8982d7aa6b5b27f343ef5999d40d6585c72a480fe77bc1b/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f66696c6573797374656d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/filesystem)
- [Session](https://github.com/crazedsanity/session): [![Build Status](https://camo.githubusercontent.com/25a66defc7e5f0ebbc187833fe009224c9e0f510e0e79db18b8f3e181c7b92e7/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f73657373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/session)
- [Template](https://github.com/crazedsanity/template): [![Build Status](https://camo.githubusercontent.com/22f5e397956071e3a673cd98592c604d6970e7046153155197f0076e86271127/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f74656d706c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/template)
- [Version](https://github.com/crazedsanity/version): [![Build Status](https://camo.githubusercontent.com/c6a76964902fff72e2bd4913dca3b97871928eef7074f2c3e64e5dcb45f964c1/68747470733a2f2f7472617669732d63692e6f72672f6372617a656473616e6974792f76657273696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crazedsanity/version)

*For info about upgrades, check the "upgrades" folder*

(a.k.a. "CS-WebAppLibs" or "CSWAL")

**WARNING #1:** Version 0.5.x and above utilize PDO and prepared statements. Applications/libraries/frameworks that were written against a prior version may need to be rewritten to handle the differences. In theory, it is still fully backwards-compatible... but I make no guarantees.

**WARNING #2:** If you don't read what sparse documentation there is, you probably won't get it.

**WARNING #3:** This code was not written for the faint of heart. The naming conventions may be inconsistent. Some of these classes, such as the WebDBUpgrade system, is made to be transparent, so interacting with it can be difficult; others, such as the logging system, are meant to be used with little need to understand their inner-workings.

**WARNING #4:** Due to lack of help, the only officially-supported database is PostgreSQL. Most things should be fairly well database-agnostic, though some of the fancier features (such as transactions within the upgrade system) may not work as expected: MySQL can sometimes automatically commits changes without warning, such as when transactions cross transactionable and transactionless tables.

Testing
-------

[](#testing)

Unit testing was previously done with SimpleTest, but now uses (or is being converted to use) PHPUnit: this was done to help ease incorporation with [Travis-CI](http://travis-ci-org/crazedsanity/) for continuous integration testing.

Testing database interaction can be a tricky thing, and it must conform to how [Travis-CI's database setup works](http://about.travis-ci.org/docs/user/database-setup/).

To simplify things, the testing is currently only performed against a Postgres database. The settings are hard-coded:

- User: postgres
- Pass: (none)
- database: \_unittest\_
- host: localhost
- port: (default)

Documentation
-------------

[](#documentation)

*On to the documentation...*

This is a set of libraries for working with PHP-based web applications. It builds upon the foundation of CS-Content, which can be found at \[  \]; it also builds upon CS-PHPXML, which is just an XML library, and can be found at \[  \].

Look at the library-specific documentation:

- [Basic Database Interaction](docs/README_phpDB.md)
- [CS Web DB Logger](docs/README_webdblogger.md)
- [CS Web DB Upgrade](docs/README_webdbupgrade.md)
- [Lock File](docs/README_lockfile.md)
- [Auth Token](docs/README_authToken.md)
- [User Authentication](docs/README_authUser.md)
- [Session DB](docs/README_sessionDB.md)
- [Site Configuration](docs/README_siteConfig.md)

### NOTE REGARDING OTHER CLASSES

[](#note-regarding-other-classes)

There are other classes implemented. As they're tested (and I have time), more documentation will be added here. For more (or less) up-to-date information, take a look at the "Developer's Corner" on CrazedSanity.com: \[[http://www.crazedsanity.com/content/devCorner/cs\_webapplibs](http://www.crazedsanity.com/content/devCorner/cs_webapplibs)\]

License
=======

[](#license)

Copyright (c) 2013 "crazedsanity" Dan Falconer Dual licensed under the MIT and GPL Licenses.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~35 days

Total

39

Last Release

4160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e5c258da2d3360da7bc80c01e0a97ff96a036cef58f8a5434daf469ad7cc186?d=identicon)[crazedsanity](/maintainers/crazedsanity)

---

Top Contributors

[![crazedsanity](https://avatars.githubusercontent.com/u/1490894?v=4)](https://github.com/crazedsanity "crazedsanity (336 commits)")

---

Tags

phpapiwebloggingdatabaseauthtokenpermissionsiteconfiglockfileupgrades

### Embed Badge

![Health badge](/badges/crazedsanity-cs-webapplibs/health.svg)

```
[![Health](https://phpackages.com/badges/crazedsanity-cs-webapplibs/health.svg)](https://phpackages.com/packages/crazedsanity-cs-webapplibs)
```

###  Alternatives

[bvanhoekelen/performance

PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.

521774.3k4](/packages/bvanhoekelen-performance)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
