{"id":14955121,"url":"https://github.com/level-level/clarkson-core","last_synced_at":"2025-04-05T13:08:39.063Z","repository":{"id":30567176,"uuid":"34122091","full_name":"level-level/Clarkson-Core","owner":"level-level","description":"A plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.","archived":false,"fork":false,"pushed_at":"2025-02-04T13:27:09.000Z","size":1205,"stargazers_count":24,"open_issues_count":32,"forks_count":11,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-05T13:08:34.526Z","etag":null,"topics":["clarkson","level-level","plugin","template","theming-layer","twig","wordpress","wordpress-objects"],"latest_commit_sha":null,"homepage":"https://level-level.github.io/Clarkson-Core/phpdoc/guide/index.html","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"RaspberryPiFoundation/webdev-curriculum","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/level-level.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2015-04-17T14:46:47.000Z","updated_at":"2024-10-23T11:49:32.000Z","dependencies_parsed_at":"2024-06-26T15:59:22.867Z","dependency_job_id":"d16b43e2-8fdc-495d-8fb2-802540969308","html_url":"https://github.com/level-level/Clarkson-Core","commit_stats":{"total_commits":486,"total_committers":26,"mean_commits":"18.692307692307693","dds":0.6584362139917695,"last_synced_commit":"a9fbe71e494201a02fc33acb5cb52834b6a4aa54"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2FClarkson-Core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2FClarkson-Core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2FClarkson-Core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/level-level%2FClarkson-Core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/level-level","download_url":"https://codeload.github.com/level-level/Clarkson-Core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"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":["clarkson","level-level","plugin","template","theming-layer","twig","wordpress","wordpress-objects"],"created_at":"2024-09-24T13:10:33.008Z","updated_at":"2025-04-05T13:08:39.040Z","avatar_url":"https://github.com/level-level.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/level-level/Clarkson-Core/actions/workflows/test.yml/badge.svg)](https://github.com/level-level/Clarkson-Core/actions/workflows/test.yml)\n\n# Clarkson Core\nA plugin to write Object-Oriented code in combination with the Twig templating engine while keeping the WordPress Way of working in mind.\n\n## Documentation and getting started\nCheck out the [getting started with Clarkson Core guide](https://level-level.github.io/Clarkson-Core/phpdoc/guide/index.html) if you are just getting to know the project.\n\n## Overview\n\n### Installation\n```\ncomposer require level-level/clarkson-Core\n```\n\nor read the [installation guide](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/installation.html).\n\n### Template Hierachy\nUses the internal [Template Hierarchy](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/templating.html) so you can replace `index.php` with `index.twig` or `archive-company.php` with `archive-company.twig` and still have all Posts or CPT's available in \"The Loop\".\n\n\n```twig\n{% extends \"layouts/full-width.twig\" %}\n\n{% block content %}\n    {% for object in objects %}\n        {% include 'partials/teaser.twig' %}\n    {% endfor %}\n{% endblock %}\n```\n\n### Autoloading of WordPress-object classes per Custom Post Type.\nIt autoloads default objects that behave just like `WP_Post` and other native WordPress object but with some more handy stuff.\nWhen you register a Custom Post Type `ll_company` your custom class `ll_company` gets loaded in the Twig context as `objects` variable within the `archive-company.twig`.  \n\nRead up on [Clarkson objects and how they are initiated](https://level-level.github.io/Clarkson-Core/phpdoc/guide/getting-started/clarkson-objects.html).\n\n## More documentation\n\n- [Actions \u0026 filters](https://level-level.github.io/Clarkson-Core/hooks/)\n- [Reference](https://level-level.github.io/Clarkson-Core/phpdoc/namespaces/clarkson-core.html)\n- [Legacy documentation](https://github.com/level-level/Clarkson-Core/wiki)\n\n## Tests\nCurrently \n1. Clone repository `git@github.com:level-level/Clarkson-Core.git clarkson-core`.\n1. Run `composer install` in the new `clarkson-core` directory.\n1. Run `composer run test`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel-level%2Fclarkson-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevel-level%2Fclarkson-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevel-level%2Fclarkson-core/lists"}