{"id":15673251,"url":"https://github.com/vinyvicente/doctrine-point-type","last_synced_at":"2025-04-30T07:05:09.324Z","repository":{"id":15961106,"uuid":"73493526","full_name":"vinyvicente/doctrine-point-type","owner":"vinyvicente","description":"Point Type Doctrine","archived":false,"fork":false,"pushed_at":"2024-04-08T11:05:26.000Z","size":65,"stargazers_count":17,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T07:04:34.364Z","etag":null,"topics":["doctrine","point","type"],"latest_commit_sha":null,"homepage":null,"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/vinyvicente.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}},"created_at":"2016-11-11T16:30:32.000Z","updated_at":"2025-03-27T13:34:45.000Z","dependencies_parsed_at":"2024-04-08T10:26:10.686Z","dependency_job_id":"ef91ffdd-aee5-4402-bf3b-1c59a6beecc8","html_url":"https://github.com/vinyvicente/doctrine-point-type","commit_stats":{"total_commits":40,"total_committers":7,"mean_commits":5.714285714285714,"dds":"0.32499999999999996","last_synced_commit":"91fe71bb72449f44d832a7bb349d9b7525c2b1ce"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fdoctrine-point-type","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fdoctrine-point-type/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fdoctrine-point-type/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinyvicente%2Fdoctrine-point-type/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinyvicente","download_url":"https://codeload.github.com/vinyvicente/doctrine-point-type/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658201,"owners_count":21622819,"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":["doctrine","point","type"],"created_at":"2024-10-03T15:38:47.101Z","updated_at":"2025-04-30T07:05:09.302Z","avatar_url":"https://github.com/vinyvicente.png","language":"PHP","funding_links":[],"categories":["Related Projects"],"sub_categories":[],"readme":"# Point Type\nPoint Type to Doctrine2\n\n[![CI](https://github.com/vinyvicente/doctrine-point-type/actions/workflows/ci.yml/badge.svg)](https://github.com/vinyvicente/doctrine-point-type/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/vinyvicente/doctrine-point-type/graph/badge.svg?token=9avpqKeDcF)](https://codecov.io/gh/vinyvicente/doctrine-point-type)\n![Packagist Version](https://img.shields.io/packagist/v/vinyvicente/doctrine-point-type)\n[![Total Downloads](https://poser.pugx.org/vinyvicente/doctrine-point-type/downloads)](https://packagist.org/packages/vinyvicente/doctrine-point-type)\n![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/vinyvicente/doctrine-point-type/latest/total)\n[![License](https://poser.pugx.org/vinyvicente/doctrine-point-type/license)](https://packagist.org/packages/vinyvicente/doctrine-point-type)\n[![composer.lock available](https://poser.pugx.org/vinyvicente/doctrine-point-type/composerlock)](https://packagist.org/packages/vinyvicente/doctrine-point-type)\n\n### Versions:\n\n| Version | PHP Version               |\n|---------|---------------------------|\n| 1.*     | 7.0                       |\n| 2.*     | 7.1 or higher             |\n| 3.*     | 7.4 or higher             |\n| 4.*     | 8.2 or higher             |\n| 5.*     | 8.2 or higher (Symfony 7) |\n\n\n## How to use\n\nFirst, composer install:\n\n```\ncomposer require vinyvicente/doctrine-point-type\n```\n\nAfter, add in your bootstrap:\n\n\n```php\nuse Doctrine\\DBAL\\Types\\Type;\nuse Viny\\PointType;\n\n$em = YourEntityManager();\n\nType::addType('point', PointType::class);\n\n// in case without Symfony :)\n$em-\u003egetConnection()-\u003egetDatabasePlatform()-\u003eregisterDoctrineTypeMapping('point', 'point');\n\n```\n\nOr add it in your app/config yml files\n```yaml\ndoctrine:\n    dbal:\n        types:\n            point: Viny\\PointType\n        default_connection: default\n        connections:\n            default:\n                driver: pdo_mysql\n                host: '%database_host%'\n                port: '%database_port%'\n                dbname: '%database_name%'\n                user: '%database_user%'\n                password: '%database_password%'\n                charset: UTF8\n                mapping_types:\n                    point: point\n```\n\nSymfony Normalization is supported, just add the tag in your app/services yml file\n```yaml\nservices:\n  Viny\\PointNormalizer:\n    tags: ['serializer.normalizer']\n```\n\n### Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyvicente%2Fdoctrine-point-type","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinyvicente%2Fdoctrine-point-type","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinyvicente%2Fdoctrine-point-type/lists"}