{"id":18755285,"url":"https://github.com/sixach/wp-snippets","last_synced_at":"2025-04-13T01:35:32.505Z","repository":{"id":36972698,"uuid":"346733419","full_name":"sixach/wp-snippets","owner":"sixach","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-10T14:19:14.000Z","size":7313,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T19:36:50.208Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":"https://sixach.github.io/wp-snippets","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sixach.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}},"created_at":"2021-03-11T14:40:57.000Z","updated_at":"2022-12-09T10:19:05.000Z","dependencies_parsed_at":"2022-06-29T00:04:10.597Z","dependency_job_id":null,"html_url":"https://github.com/sixach/wp-snippets","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixach%2Fwp-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixach%2Fwp-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixach%2Fwp-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sixach%2Fwp-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sixach","download_url":"https://codeload.github.com/sixach/wp-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654030,"owners_count":21140236,"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":["library"],"created_at":"2024-11-07T17:32:20.696Z","updated_at":"2025-04-13T01:35:32.073Z","avatar_url":"https://github.com/sixach.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Snippets\n\nThis repository is a collection of useful functions for WordPress projects.\n\n## Introduction\n\nAt Sixa, we strive to provide a top-notch and solid code base for all WordPress projects. \nIn order to improve both our efficiency and consistency, we need to standardize what we \nuse and how we use it.\n\nThis repository allows us to reuse initial functions and classes to make sure all projects \ncan get up and running as quickly as possible while closing adhering to Sixa’s high-quality\ncoding standards.\n\n## Installation\n\n```bash\ncomposer install sixach/wp-snippets\n```\n\nsuch that in `composer.json` you `require` the package\n```JSON\n{\n    \"require\": {\n        \"sixach/wp-snippets\": \"^1.4.1\"\n    }\n}\n```\n\nMake sure to use the latest version, the version in the example above might be outdated.\n\n## Usage\n\nIn the file in which you wish to call a function or factory class from WP Snippets, simply\nimport the class and call it subsequently, e.g.\n\n```PHP\n\u003c?php\nnamespace Package\\Subpackage;\n\nuse Sixa_Snippets\\Dashboard\\Menu_Options as Menu_Options;\n\nclass My_Class {\n\n    public function some_cool_function(): void {\n        // The class imported from Sixa_Snippets\n        new Menu_Options (\n            array (\n                array (\n                    'default'     =\u003e 'no',\n                    'type'        =\u003e 'checkbox',\n                    'id'          =\u003e 'edit-menu-item-is-button',\n                    'name'        =\u003e 'is_button',\n                    'description' =\u003e __( 'Style this item as a CTA button? (Top-level only)', '@@textdomain' ),\n                ),\n            )\n        );\n    }\n    \n}\n?\u003e\n```\n\n### Documentation\n\nFor a more detailed documentation on the functionality included in this package, please refer\nto the [about page of this repository](https://sixach.github.io/wp-snippets/#/).\n\n## Notes\n\n**Note 1**: Much of the functionality in this repository is intended to be optional depending on the needs of the project. E.g. `Breadcrumb` class.\n\n**Note 2**: Presentation should be kept in the theme. Separating functionality from aesthetics makes long-term development, maintenance, and extensibility much easier.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixach%2Fwp-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixach%2Fwp-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixach%2Fwp-snippets/lists"}