{"id":18307875,"url":"https://github.com/tobihatti/php-library-collection","last_synced_at":"2025-04-09T11:25:00.137Z","repository":{"id":116971795,"uuid":"157260443","full_name":"TobiHatti/PHP-Library-Collection","owner":"TobiHatti","description":"✔🌍 A collection of usefull PHP-Libraries for web-development","archived":false,"fork":false,"pushed_at":"2021-03-28T03:59:50.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:24:54.824Z","etag":null,"topics":["framework","library","php","php-library","php-oop","php7"],"latest_commit_sha":null,"homepage":"https://endev.at/p/PHP-Library-Collection","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TobiHatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-12T18:49:52.000Z","updated_at":"2021-03-28T03:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"40ff89e5-5822-4d74-a5b9-d2c78b2be5e2","html_url":"https://github.com/TobiHatti/PHP-Library-Collection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TobiHatti%2FPHP-Library-Collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TobiHatti%2FPHP-Library-Collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TobiHatti%2FPHP-Library-Collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TobiHatti%2FPHP-Library-Collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TobiHatti","download_url":"https://codeload.github.com/TobiHatti/PHP-Library-Collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248029110,"owners_count":21035938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","library","php","php-library","php-oop","php7"],"created_at":"2024-11-05T16:05:46.853Z","updated_at":"2025-04-09T11:25:00.131Z","avatar_url":"https://github.com/TobiHatti.png","language":"PHP","readme":"\u003cimg align=\"right\" width=\"80\" height=\"80\" data-rmimg src=\"https://endev.at/content/projects/PHP-Library-Collection/EndevLibsLogo.svg\"\u003e\n\n# PHP Library Collection\n\n![GitHub](https://img.shields.io/github/license/TobiHatti/PHP-Library-Collection)\n[![GitHub Release Date](https://img.shields.io/github/release-date-pre/TobiHatti/PHP-Library-Collection)](https://github.com/TobiHatti/PHP-Library-Collection/releases)\n[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/TobiHatti/PHP-Library-Collection?include_prereleases)](https://github.com/TobiHatti/PHP-Library-Collection/releases)\n[![GitHub last commit](https://img.shields.io/github/last-commit/TobiHatti/PHP-Library-Collection)](https://github.com/TobiHatti/PHP-Library-Collection/commits/master)\n[![GitHub issues](https://img.shields.io/github/issues-raw/TobiHatti/PHP-Library-Collection)](https://github.com/TobiHatti/PHP-Library-Collection/issues)\n[![GitHub language count](https://img.shields.io/github/languages/count/TobiHatti/PHP-Library-Collection)](https://github.com/TobiHatti/PHP-Library-Collection)\n\n![image](https://endev.at/content/projects/PHP-Library-Collection/PHPLibraryCollection_Banner_300.svg)\n\nA collection of usefull PHP-Libraries for web-development\u003cbr /\u003e\nFor detailed description see the README.md in each libraries folder.\nA brief summary of all classes and methods is given below.\n\nEvery library is available for procedural programming style \nand object oriented programming style (object oriented is recommended)\n\n__Current libraries:__\n- MySQL.lib\n- Pager.lib\n- Page.lib\n- Upload.lib\n- Setting.lib\n\n## MySQL.lib\nA lightweight MySQL library with all necessary methods for regular use.\n\n- __NonQuery__\u003cbr /\u003e\nExecute a SQL-Operation like INSERT, UPDATE, ALTER, ...\u003cbr /\u003e\n```php\nvoid MySQL::NonQuery(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Scalar__\u003cbr /\u003e\nGet 1 value using a SELECT statement\u003cbr /\u003e\n```php\nstring MySQL::Scalar(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Count__\u003cbr /\u003e\nCount rows of a table using a SELECT statement\u003cbr /\u003e\n```php\nint MySQL::Count(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Exist__\u003cbr /\u003e\nChecks if a SQL-entry exists using a SELECT statement\u003cbr /\u003e\n```php\nbool MySQL::Exist(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Row__\u003cbr /\u003e\nGet a single row of the table using a SELECT statement\u003cbr /\u003e\n```php\nstring[] MySQL::Row(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Cluster__\u003cbr /\u003e\nGet multiple rows of the table using a SELECT statement\u003cbr /\u003e\n```php\nstring[][] MySQL::Cluster(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Save__\u003cbr /\u003e\nSaves the database to a `.sql` file\u003cbr /\u003e\n```php\nvoid MySQL::Save(string $backupName)\n```\n\n- __PeriodicSave__\u003cbr /\u003e\nRegularly saves the database in a specified period\u003cbr /\u003e\n```php\nvoid MySQL::PeriodicSave([string $backupPeriod = \"d\"])\n```\n\nFor more details see the `README.md` in the library folder\n\n## Pager.lib\nA small PHP-class that adds a variety of pagers for SQL and Non-SQL lists\n\n- __SQLAuto__\u003cbr /\u003e\nCreate a pager with a given SELECT statement\u003cbr /\u003e\n```php\nstring $pager-\u003eSQLAuto(string $sqlStatement [, string $paramTypes, mixed \u0026$parameters...])\n```\n\n- __Manual__\u003cbr /\u003e\nCreate a manual pager\u003cbr /\u003e\n```php\nstring $pager-\u003eManual([string $link...])\n```\n\n- __SetPagerSize__\u003cbr /\u003e\nSet Shown entries per page\u003cbr /\u003e\n```php\nvoid $pager-\u003eSetPagerSize(int $pagerSize)\n```\n\n- __SetOffset__\u003cbr /\u003e\nManually set the current page of the pager\u003cbr /\u003e\n```php\nvoid $pager-\u003eSetOffset(int $pagerOffset)\n```\n\n- __SetCustomURL__\u003cbr /\u003e\nSet a custom redirect-URL for the pager\u003cbr /\u003e\n```php\nvoid $pager-\u003eSetCustomURL(string $customURL)\n```\n\n- __GetPagerSize__\u003cbr /\u003e\nGet the amount of shown elements per page\u003cbr /\u003e\n```php\nint $pager-\u003eGetPagerSize()\n```\n\n- __GetOffset__\u003cbr /\u003e\nGet the current page of the pager\u003cbr /\u003e\n```php\nint $pager-\u003eGetOffset()\n```\n\nFor more details see the `README.md` in the library folder\n\n## Page.lib\nA lightweight PHP-class which adds several usefull Methods to PHP\n- __This__\u003cbr /\u003e\nReturns the pages URL and modifies it with given parameters\u003cbr /\u003e\n```php\nstring Page::This([string $urlModifier])\n```\n\n- __Redirect__\u003cbr /\u003e\nRedirects to the provided URL\u003cbr /\u003e\n```php\nvoid Page::Redirect(string $redirectURL [, int $redirectDelay])\n```\n\nFor more details see the `README.md` in the library folder\n\n## Upload.lib\nA simple and reliable PHP-class for Uploading files to the server\n\n- __SetFileElement__\u003cbr /\u003e\nSet PHP-Form file-selector name\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetFileElement(string $phpFileElementName)\n```\n\n- __SetPath__\u003cbr /\u003e\nSet target upload path\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetPath(string $targetUploadPath)\n```\n\n- __SetName__\u003cbr /\u003e\nSet custom filename for uploaded file\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetName(string $customFileName)\n```\n\n- __SetSQLEntry__\u003cbr /\u003e\nSet MySQL-Entry to insert filename or extension into database\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetSQLEntry(string $sqlStatement)\n```\n\n- __SetFileTypes__\u003cbr /\u003e\nDefine allowed filetypes. Default: all filetypes\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetFileTypes([string $allowedFileTypeExtension...])\n```\n\n- __SetMaxFileSize__\u003cbr /\u003e\nSet maximum filesize of file to be uploaded\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetMaxFileSize(string $maxFileSize)\n```\n\n- __SetTargetAspectRatio__\u003cbr /\u003e\nResize image to the defined Aspect Ratio\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetTargetAspectRatio(string $aspectRatio)\n```\n\n- __SetTargetResolution__\u003cbr /\u003e\nSet maximum filesize and scale down image without changing aspect ratio\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetTargetResolution(int $maxImageWidth, int $maxImageHeight)\n```\n\n- __SetScaleFactor__\u003cbr /\u003e\nSet scale factor for uploaded image\u003cbr /\u003e\n```php\nvoid $uploader-\u003eSetScaleFactor(int $scaleFactor)\n```\n\n- __OverrideDuplicates__\u003cbr /\u003e\nDefine if files with the same fileame should be overwritten or not\u003cbr /\u003e\n```php\nvoid $uploader-\u003eOverrideDuplicates(bool $overrideDuplicates)\n```\n\n- __Upload__\u003cbr /\u003e\nUploads the file to the server\u003cbr /\u003e\n```php\nvoid $uploader-\u003eUpload()\n```\n\n\nFor more details see the `README.md` in the library folder\n\n## Settings.lib\nA small PHP-class to save and load Settings stored in a MySQL-Database\n- __Set__\u003cbr /\u003e\nSets a setting with maching keyword to given value\u003cbr /\u003e\n```php\nvoid Setting::Set(string $settingKeyword , string $settingValue)\n```\n\n- __Get__\u003cbr /\u003e\nReturns setting's value with maching keyword\u003cbr /\u003e\n```php\nmixed Setting::Get(string $settingKeyword)\n```\n\n- __Increment__\u003cbr /\u003e\nIncrements a settings value and returns the new value\u003cbr /\u003e\n```php\nint Setting::Increment(string $settingKeyword[, int $resetLimit])\n```\n\n- __Decrement__\u003cbr /\u003e\nDecrements a settings value and returns the new value\u003cbr /\u003e\n```php\nmixed Decrement::Get(string $settingKeyword)\n```\n\n\nFor more details see the `README.md` in the library folder\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobihatti%2Fphp-library-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobihatti%2Fphp-library-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobihatti%2Fphp-library-collection/lists"}