{"id":20472556,"url":"https://github.com/litto/utilities","last_synced_at":"2025-03-05T13:50:41.904Z","repository":{"id":62517891,"uuid":"456374121","full_name":"litto/utilities","owner":"litto","description":"Custom Functions for Generating slugs,passwords,paerse string.etc.","archived":false,"fork":false,"pushed_at":"2022-02-07T06:07:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T02:29:18.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-07T05:46:15.000Z","updated_at":"2022-02-07T05:56:04.000Z","dependencies_parsed_at":"2022-11-02T13:45:50.124Z","dependency_job_id":null,"html_url":"https://github.com/litto/utilities","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/litto%2Futilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litto%2Futilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litto%2Futilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litto%2Futilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litto","download_url":"https://codeload.github.com/litto/utilities/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242039686,"owners_count":20061925,"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":[],"created_at":"2024-11-15T14:20:33.792Z","updated_at":"2025-03-05T13:50:41.878Z","avatar_url":"https://github.com/litto.png","language":"PHP","readme":"# Utilities Functions\nCustom Functions for Generating slugs,passwords,parse string.etc.\n\n##How to Install?\n\nYou can install by running command in composer\ncomposer require litto/utilities:v1.0\n\n## How to use?\n\nInitialize Class Utilities by calling:-\n\n$obj=new Utilities();\n$encodedstr=$obj-\u003eencode($str);\n\nCall each Function define in the Utilities Class like this. Below are some of functions available.\n\n1) getRandom()  - get random string using current timestamp\n2) getExtension($string) - Get extension of the file you pass into this function\n3) setPattern($array) - Set pattern for Filter Function\n4) filterChars($string) - Filter chars from string\n5) dateDisplayFormat($date)-Convert Date to M-d-Y Format\n6) dateTimeDisplayFormat($date) - Convert date time to M-d-Y H:i:s format\n7) dateInsertFormat($date) - Convert date time to database date format for saving\n8) encodeString($string) - Encode your string\n9) decodeString($string) - Decode your string\n10) priceFormat($price) - Convert to price format for display\n11) addFilter($string)- Filtering string\n12) encode($originalStr) - Password Encode\n13) decode($decodedStr) - Decode Password\n14) littoformattitle($text)- Generate slug variable passing string\n15) getBaseUrl()- get base url of project\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitto%2Futilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitto%2Futilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitto%2Futilities/lists"}