{"id":15937141,"url":"https://github.com/knowler/wp-capsule","last_synced_at":"2026-04-26T12:32:25.225Z","repository":{"id":57007816,"uuid":"158748163","full_name":"knowler/wp-capsule","owner":"knowler","description":"Laravel's Illuminate Capsule configured for WordPress.","archived":false,"fork":false,"pushed_at":"2019-08-09T18:27:30.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T19:47:19.270Z","etag":null,"topics":["illuminate-database","wordpress"],"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/knowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-22T20:39:56.000Z","updated_at":"2019-11-21T21:50:31.000Z","dependencies_parsed_at":"2022-08-21T12:30:13.017Z","dependency_job_id":null,"html_url":"https://github.com/knowler/wp-capsule","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/knowler/wp-capsule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fwp-capsule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fwp-capsule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fwp-capsule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fwp-capsule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/wp-capsule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fwp-capsule/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["illuminate-database","wordpress"],"created_at":"2024-10-07T05:00:25.747Z","updated_at":"2026-04-26T12:32:25.208Z","avatar_url":"https://github.com/knowler.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Capsule\n\n[![Build Status](https://travis-ci.org/knowler/wp-capsule.svg?branch=master)](https://travis-ci.org/knowler/wp-capsule)\n\nIlluminate's [Capsule] preset for WordPress. This is just a\nwrapper with a config, so kudos to Laravel for being awesome. \n\n**This is _not_ a plugin, it's a package for use in a WordPress\nplugin. Also, note that it presumes that your WordPress site\nis using [PHP dotenv] under the hood. It works well if you \nare using [Bedrock].**\n\n[Capsule]: https://github.com/illuminate/database\n[PHP dotenv]: https://github.com/vlucas/phpdotenv\n[Bedrock]: https://github.com/roots/bedrock\n\n## Requirements\n\n* PHP: ^7.1\n* [PHP dotenv]\n\n## Installation\n\n```sh\ncomposer require knowler/wp-capsule\n```\n\n## Usage\n\nHere's example usage within a plugin:\n\n```php\n/** Autoload */\nrequire_once __DIR__ . '/vendor/autoload.php';\n\n/** Boot Capsule */\nnew KnowlerKnows\\WP\\Capsule\\Boot;\n\nuse KnowlerKnows\\WP\\Capsule\\Capsule;\n\nregister_activation_hook(__FILE__, function () {\n    Capsule::schema()-\u003ecreate('products', function ($table) {\n        $table-\u003eincrements('id');\n        $table-\u003estring('name');\n        $table-\u003etimestamps();\n    });\n});\n\nregister_deactivation_hook(__FILE__, function () {\n    Capsule::schema()-\u003edropIfExists('products');\n});\n```\n\n## Contributing\n\nFeel free to make a pull request or report issues. I threw this\ntogether pretty quickly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fwp-capsule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Fwp-capsule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fwp-capsule/lists"}