{"id":25257507,"url":"https://github.com/czproject/sql-schema","last_synced_at":"2025-10-27T02:31:52.833Z","repository":{"id":56961057,"uuid":"79660210","full_name":"czproject/sql-schema","owner":"czproject","description":"Library for describe of the database schema.","archived":false,"fork":false,"pushed_at":"2023-07-27T10:25:30.000Z","size":50,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T16:04:30.764Z","etag":null,"topics":["database-schema","php","sql-schema"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czproject.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.paypal.com/donate?hosted_button_id=BWR5RJCDLY7SG"}},"created_at":"2017-01-21T17:15:05.000Z","updated_at":"2023-08-22T07:20:57.000Z","dependencies_parsed_at":"2022-08-21T09:20:45.752Z","dependency_job_id":null,"html_url":"https://github.com/czproject/sql-schema","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fsql-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fsql-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fsql-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fsql-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czproject","download_url":"https://codeload.github.com/czproject/sql-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238424859,"owners_count":19470197,"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":["database-schema","php","sql-schema"],"created_at":"2025-02-12T06:40:14.016Z","updated_at":"2025-10-27T02:31:52.828Z","avatar_url":"https://github.com/czproject.png","language":"PHP","readme":"# CzProject\\SqlSchema\n\n[![Build Status](https://github.com/czproject/sql-schema/workflows/Build/badge.svg)](https://github.com/czproject/sql-schema/actions)\n[![Downloads this Month](https://img.shields.io/packagist/dm/czproject/sql-schema.svg)](https://packagist.org/packages/czproject/sql-schema)\n[![Latest Stable Version](https://poser.pugx.org/czproject/sql-schema/v/stable)](https://github.com/czproject/sql-schema/releases)\n[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/czproject/sql-schema/blob/master/license.md)\n\nLibrary for describe of the database schema.\n\n\n\u003ca href=\"https://www.janpecha.cz/donate/\"\u003e\u003cimg src=\"https://buymecoffee.intm.org/img/donate-banner.v1.svg\" alt=\"Donate\" height=\"100\"\u003e\u003c/a\u003e\n\n\n## Installation\n\n[Download a latest package](https://github.com/czproject/sql-schema/releases) or use [Composer](http://getcomposer.org/):\n\n```\ncomposer require czproject/sql-schema\n```\n\nCzProject\\SqlSchema requires PHP 8.0 or later.\n\n\n## Usage\n\n``` php\nuse CzProject\\SqlSchema\\Index;\n$schema = new CzProject\\SqlSchema\\Schema;\n\n$table = $schema-\u003eaddTable('book');\n$table-\u003eaddColumn('id', 'INT', NULL, array('UNSIGNED'));\n$table-\u003eaddColumn('name', 'VARCHAR', array(200));\n$table-\u003eaddColumn('author_id', 'INT', NULL, array('UNSIGNED'));\n$table-\u003eaddIndex(NULL, 'id', Index::TYPE_PRIMARY);\n$table-\u003eaddIndex('name_author_id', array('name', 'author_id'), Index::TYPE_UNIQUE);\n\n$schema-\u003egetTables();\n```\n\n------------------------------\n\nLicense: [New BSD License](license.md)\n\u003cbr\u003eAuthor: Jan Pecha, https://www.janpecha.cz/\n","funding_links":["https://www.paypal.com/donate?hosted_button_id=BWR5RJCDLY7SG"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fsql-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczproject%2Fsql-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fsql-schema/lists"}