{"id":15077807,"url":"https://github.com/borsaco/jalalidatetimebundle","last_synced_at":"2026-02-07T02:01:26.832Z","repository":{"id":62496175,"uuid":"195949107","full_name":"borsaco/JalaliDateTimeBundle","owner":"borsaco","description":"A bundle to using jalali date time in Symfony applications","archived":false,"fork":false,"pushed_at":"2020-04-17T19:25:29.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T17:47:45.061Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borsaco.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}},"created_at":"2019-07-09T06:46:04.000Z","updated_at":"2020-04-17T19:25:11.000Z","dependencies_parsed_at":"2022-11-02T11:46:16.979Z","dependency_job_id":null,"html_url":"https://github.com/borsaco/JalaliDateTimeBundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/borsaco/JalaliDateTimeBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FJalaliDateTimeBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FJalaliDateTimeBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FJalaliDateTimeBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FJalaliDateTimeBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borsaco","download_url":"https://codeload.github.com/borsaco/JalaliDateTimeBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FJalaliDateTimeBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29184977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"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":[],"created_at":"2024-09-25T04:32:29.615Z","updated_at":"2026-02-07T02:01:26.818Z","avatar_url":"https://github.com/borsaco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JalaliDateTimeBundle\n A bundle to using jlali date time in Symfony applications \n\n## Install\n\nVia Composer\n\n``` bash\ncomposer require borsaco/jalali-date-time-bundle\n```\n\nEdit your app/AppKernel.php to register the bundle in the registerBundles() method as above:\n\n\n```php\nclass AppKernel extends Kernel\n{\n\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n            // register the bundle here\n            new Borsaco\\JalaliDateTimeBundle\\JalaliDateTimeBundle()\n        );\n    }\n}\n```\n\n## Usage\n\n\nWherever you have access to the service container :\n```php\n\u003c?php\n    // get the jlali date as a service\n    $jlaliDateTime = $this-\u003econtainer-\u003eget('jalali_date_time');\n\n    $jlaliDateTime-\u003edate('l j F Y H:i');\n    $jlaliDateTime-\u003edate('Y-m-d', false, false);\n    $jlaliDateTime-\u003edate('Y-m-d', false, false, false);\n    $jlaliDateTime-\u003edate(\"l j F Y H:i T\", false, null, null, 'America/New_York');\n    \n    // convert to jalali\n    $unixDatetime = date(\"U\");\n    $jlaliDateTime-\u003edate('l j F Y H:i', $unixDatetime);\n\n?\u003e\n```\n\nFor use the form type add ```JalaliDateType``` form type and create your view with this library:\nhttps://github.com/beygi/bootstrap-persian-datetimepicker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsaco%2Fjalalidatetimebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborsaco%2Fjalalidatetimebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsaco%2Fjalalidatetimebundle/lists"}