{"id":15028955,"url":"https://github.com/julles/stringer","last_synced_at":"2026-02-17T18:03:19.048Z","repository":{"id":57021785,"uuid":"141759070","full_name":"julles/stringer","owner":"julles","description":"Manipulation PHP String Package","archived":false,"fork":false,"pushed_at":"2018-07-22T18:33:51.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T04:29:17.946Z","etag":null,"topics":["php","php5","php7","string","string-manipulation","stringer"],"latest_commit_sha":null,"homepage":"","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/julles.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":"2018-07-20T21:22:28.000Z","updated_at":"2018-09-13T14:35:30.000Z","dependencies_parsed_at":"2022-08-23T13:51:02.265Z","dependency_job_id":null,"html_url":"https://github.com/julles/stringer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/julles/stringer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julles%2Fstringer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julles%2Fstringer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julles%2Fstringer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julles%2Fstringer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julles","download_url":"https://codeload.github.com/julles/stringer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julles%2Fstringer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275648943,"owners_count":25503204,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","php5","php7","string","string-manipulation","stringer"],"created_at":"2024-09-24T20:09:25.931Z","updated_at":"2025-09-17T19:16:32.495Z","avatar_url":"https://github.com/julles.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stringer\n\n[![Total Downloads](https://poser.pugx.org/muhamadrezaar/stringer/d/total.svg)](https://poser.pugx.org/muhamadrezaar/stringer/d/total.svg)\n[![License](https://poser.pugx.org/muhamadrezaar/stringer/license.svg)](https://poser.pugx.org/muhamadrezaar/stringer/license.svg)\n[![License](https://img.shields.io/github/release/julles/stringer.svg?style=flat-square)](https://github.com/julles/stringer/releases)\n[![StyleCi](https://github.styleci.io/repos/141759070/shield)](https://github.styleci.io/repos/141759070/shield)\n\n### Introduction\n\nStringer is stand alone PHP package for string manipulation with an expresive syntax.\n\n### Instalation\n\nThis package required composer\n\n``` sh\ncomposer require muhamadrezaar/stringer\n```\n\nthen in your file php\n\n```\n include \"vendor/autoload.php\"; \n```\n\n### Example\n\nHere is the basic usage and some examples methods: \n\n``` sh\n\u003c?php\ninclude \"vendor/autoload.php\";\n\n$str = new RezaAr\\Stringer\\Stringer(\"php is awesome\");\n// or\n$str = stringer(\"php is awesome\");\n\n$str-\u003ereverse()-\u003edisplay(); // return \"emosewa si php\"\n\n$str-\u003esubstring(0,1)-\u003edisplay(); // return \"r\"\n\n?\u003e\n\n```\n\nCustom Method\n\n``` sh\n\u003c?php\n$string = stringer('laravel is php framework');\n$string-\u003ecustom(function($string){\n\t\t// your own manipulation syntax\n\t})\n\t-\u003edisplay()\n?\u003e\n\n```\n\nUsing chaining method\n\n``` sh\n$str = stringer('azer')\n\t-\u003ereverse()\n\t-\u003ereplace(\"a\",\"i\")\n\t-\u003erepeat(2,\" \")\n\t-\u003edisplay(); // return \"rezi rezi\"\n\n```\n\n### Available Methods\n\n| Methods |\n| ------- |\n| -\u003ereverse() |\n| -\u003esubstring($start = 0, $end = 0) |\n| -\u003ecustom(callable $string) |\n| -\u003ecamelCase($separator = \" \") |\n| -\u003eappendFirst($first=\"\") |\n| -\u003eappendLast($last=\"\") |\n| -\u003erepeat($loop=1,$separator=\"\") |\n| -\u003eupperFirst() |\n| -\u003elowerFirst() |\n| -\u003eupperLast() |\n| -\u003elowerLast() |\n| -\u003ereplace($search,$replace) |\n| -\u003eshuffle() |\n| -\u003ereverse() |\n\n\n### License\n\nhttps://reza.mit-license.org/\n\nDevelopment will continue fork this repo and pull request\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulles%2Fstringer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulles%2Fstringer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulles%2Fstringer/lists"}