{"id":15561761,"url":"https://github.com/alexsoft/leftpad","last_synced_at":"2025-04-23T22:54:44.329Z","repository":{"id":56944820,"uuid":"54637626","full_name":"alexsoft/leftpad","owner":"alexsoft","description":"There just should be a leftpad function for PHP :smile:","archived":false,"fork":false,"pushed_at":"2024-11-05T22:10:53.000Z","size":48,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T22:54:36.787Z","etag":null,"topics":["leftpad","php"],"latest_commit_sha":null,"homepage":"","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/alexsoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-03-24T11:41:40.000Z","updated_at":"2024-11-05T22:09:26.000Z","dependencies_parsed_at":"2023-02-14T10:30:32.107Z","dependency_job_id":"cb4513b7-bf8c-406a-b3a9-426cab48de76","html_url":"https://github.com/alexsoft/leftpad","commit_stats":{"total_commits":41,"total_committers":6,"mean_commits":6.833333333333333,"dds":0.6097560975609756,"last_synced_commit":"62c828ca9fd66a17d11bd595fc5ce445293a82e6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsoft%2Fleftpad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsoft%2Fleftpad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsoft%2Fleftpad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexsoft%2Fleftpad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexsoft","download_url":"https://codeload.github.com/alexsoft/leftpad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528700,"owners_count":21445511,"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":["leftpad","php"],"created_at":"2024-10-02T16:09:53.206Z","updated_at":"2025-04-23T22:54:44.310Z","avatar_url":"https://github.com/alexsoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Left Pad for PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/alexsoft/leftpad.svg?style=flat)](https://packagist.org/packages/alexsoft/leftpad)\n\nA whole package is just one file with a single function `\\Alexsoft\\Leftpad\\leftpad(string $string, int $length, string $filler): string`\n\n    $string - your initial string\n    $length - final length of returned string\n    $filler - symbol with which initial string should be left padded\n\n### 1. Install\n```bash\ncomposer require alexsoft/leftpad\n```\n\n### 2. Use it\n```php\n\\Alexsoft\\Leftpad\\leftpad('foo', 5) // =\u003e \"  foo\"\n\n\\Alexsoft\\Leftpad\\leftpad('1', 3, '0') // =\u003e \"001\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsoft%2Fleftpad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexsoft%2Fleftpad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsoft%2Fleftpad/lists"}