{"id":19082065,"url":"https://github.com/2gbeh/php-date-format","last_synced_at":"2026-05-14T12:32:26.648Z","repository":{"id":215839574,"uuid":"739904971","full_name":"2gbeh/php-date-format","owner":"2gbeh","description":"Format dates in JavaScript using PHP syntax.","archived":false,"fork":false,"pushed_at":"2024-01-07T21:44:31.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T18:42:14.169Z","etag":null,"topics":["npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@etugbeh/php-date-format","language":"JavaScript","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/2gbeh.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":"2024-01-06T22:31:26.000Z","updated_at":"2025-01-24T09:51:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"665837ad-57db-4911-93e8-09f8732e0dc1","html_url":"https://github.com/2gbeh/php-date-format","commit_stats":null,"previous_names":["2gbeh/php-date-format"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2gbeh/php-date-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2gbeh%2Fphp-date-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2gbeh%2Fphp-date-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2gbeh%2Fphp-date-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2gbeh%2Fphp-date-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2gbeh","download_url":"https://codeload.github.com/2gbeh/php-date-format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2gbeh%2Fphp-date-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33024950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["npm-package"],"created_at":"2024-11-09T02:41:00.639Z","updated_at":"2026-05-14T12:32:26.631Z","avatar_url":"https://github.com/2gbeh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-date-format\n\nA node package for formatting dates in JavaScript using PHP syntax.\n\n- No dependencies package\n- No TypeScript support (yet)\n- Use CommonJS import syntax\n\n## Installation\n\n```sh\nnpm install @etugbeh/php-date-format\n```\n\n## Usage\n```javascript\nconst date_format = require(\"@etugbeh/php-date-format\");\n\n// Jan 7, 2024 (current date)\nconsole.log(date_format());\n\n// Tue, Sep 15, 1992\nconsole.log(date_format(\"1992-09-15\", \"D, M j, Y\"));\n\n// 1970/01/01 12:00 AM\nconsole.log(date_format(\"1970-01-01T00:00:00.000Z\", \"Y/m/d h:i A\"));\n```\n\n## Documentation\n\nhttps://www.w3schools.com/php/func_date_date_format.asp\n\nThe `date_format()` function returns a date formatted according to the specified format.\n\n**Note**: This function does not use locales (all output is in English).\n\n**Tip**: Also look at the `date()` function, which formats a local date/time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2gbeh%2Fphp-date-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2gbeh%2Fphp-date-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2gbeh%2Fphp-date-format/lists"}