{"id":16173439,"url":"https://github.com/sebkay/oop-wp","last_synced_at":"2025-03-19T00:30:49.739Z","repository":{"id":42082924,"uuid":"271536406","full_name":"SebKay/oop-wp","owner":"SebKay","description":"A library of OOP style helper classes for WordPress theme and plugin development.","archived":false,"fork":false,"pushed_at":"2025-01-09T00:18:21.000Z","size":52,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T17:06:59.352Z","etag":null,"topics":["oop","wordpress","wordpress-object-oriented-php","wordpress-oop","wordpress-php-library"],"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/SebKay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["SebKay"]}},"created_at":"2020-06-11T12:08:07.000Z","updated_at":"2024-11-13T01:55:21.000Z","dependencies_parsed_at":"2022-08-12T04:21:44.117Z","dependency_job_id":null,"html_url":"https://github.com/SebKay/oop-wp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Foop-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Foop-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Foop-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebKay%2Foop-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebKay","download_url":"https://codeload.github.com/SebKay/oop-wp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244331658,"owners_count":20435972,"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":["oop","wordpress","wordpress-object-oriented-php","wordpress-oop","wordpress-php-library"],"created_at":"2024-10-10T04:08:45.072Z","updated_at":"2025-03-19T00:30:49.416Z","avatar_url":"https://github.com/SebKay.png","language":"PHP","readme":"# OOP WP\n\n[![Test PHP](https://github.com/SebKay/oop-wp/actions/workflows/php.yml/badge.svg)](https://github.com/SebKay/oop-wp/actions/workflows/php.yml)\n\nA simple library of OOP style helper classes for WordPress theme and plugin development.\n\nMost methods in this package are wrappers for already existing functionality like `get_the_title()` or `get_user_meta()`, but they give you a much cleaner (and more modern) way to do so!\n\n## Installation\n\nIt's recommended you install this package via [Composer](https://getcomposer.org/).\n\n```bash\ncomposer require sebkay/oop-wp\n```\n\nYou'll need to include the Composer autoloader so you have access to the package. Add the following to the top of your `functions.php` file:\n\n```php\nrequire get_template_directory() . '/vendor/autoload.php';\n```\n\n## Usage\n\nWherever you want to use one of the OOP implementations, you can do so like this:\n\n```php\nuse OOPWP\\PostTypes\\Post;\n\n$blog_post = new Post(get_the_ID());\n\n$blog_post-\u003etitle();\n```\n\n### Dates with `nesbot/carbon`\n\nAll dates use the [Carbon](https://github.com/briannesbitt/Carbon) PHP library.\n\n```php\nuse OOPWP\\PostTypes\\Post;\n\n$blog_post = new Post(get_the_ID());\n\n# date() is \\Carbon\\Carbon object\n$blog_post-\u003edate()-\u003eformat('j F Y);\n```\n\n## Available Classes\n\n### Posts\n\n- `OOPWP\\PostTypes\\Post`\n\n### Users\n\n- `OOPWP\\Users`\n","funding_links":["https://github.com/sponsors/SebKay"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebkay%2Foop-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebkay%2Foop-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebkay%2Foop-wp/lists"}