computerundsound / culibrary
small helper library
7.5.0
2024-07-05 22:45 UTC
Requires
- php: ^8.1
- phpmailer/phpmailer: v6.9.1
This package is auto-updated.
Last update: 2024-12-06 00:16:05 UTC
README
Needs PHP 8+
Very easy using!
You can include_once 'culibincluder.start.php';
Then you have autoload (or better use composer)
Install with:
composer require computerundsound/culibrary
You can see some examples in /_examples/
The best way for running the examples on server.
Just copy the whole cuLibrary-dir into a directory of your server (localhost for example)
Then start http://your-server/directoryFromCuServer/_examples/
Or just read the code :-)
Why this?
This is a very(!) small library. I use it for little projects (often when I have only to build very small thinks like a vcard-page ore another onepage-tool)
Highlights:
- CuErrorHandler - handle errors like you want.
- Save an Array to Database is only one line: $db->cuInsert($tableName, $accocArray);
- Many other easy to use Database function like "cuSelectOneDataSet()", "cuUpdate()", "cuSelectAsArray()"
- Easy MailInfo.
- Save Flashmessages
- Get standard Constants like AppRoot, HttpServerPath - etc...
- MiniTemplateEngine
- Easy Debuginfo