Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionux/php-common
Commonly used functions aggregated within this class to make life simpler.
https://github.com/ionux/php-common
Last synced: 6 days ago
JSON representation
Commonly used functions aggregated within this class to make life simpler.
- Host: GitHub
- URL: https://github.com/ionux/php-common
- Owner: ionux
- License: gpl-2.0
- Created: 2014-03-10T18:58:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T00:50:56.000Z (10 months ago)
- Last Synced: 2024-03-04T01:42:54.977Z (10 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Copyright 2009-2024 Rich Morgan ([email protected])
Commonly used functions for PHP development aggregated within this class. Hopefully these static classes will make life easier for those needing this functionality. YMMV.
Usage
-----
Copy this file to your web directory. Include() the file in the head of scripts that require the functionality or use an autoloader to load the class as-needed. These functions are all static so there's no need to instantiate a new 'common' object.Example:
```php
include_once('common.php');
$calendar = common::calendar;
```Functions Provided
------------------
- db_data_escape()
- scrub()
- blogscrub()
- calendar()
- parsedate()
- encrypt()
- decrypt()Version
-------
- 0.1, initial version
- 0.2, Added encryption/decryption routines, Improved calendar code, Completed parsedate() functionLicense
-------
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.