{"id":22367807,"url":"https://github.com/mystroken/wordpruss","last_synced_at":"2025-07-30T17:33:05.344Z","repository":{"id":57081882,"uuid":"93370645","full_name":"mystroken/wordpruss","owner":"mystroken","description":":candy: :chocolate_bar: A reusable set of clean and \"beautified\" PHP classes that wrap WordPress features.","archived":false,"fork":false,"pushed_at":"2017-08-15T09:31:13.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T03:09:00.826Z","etag":null,"topics":["php","wordpress","wordpress-development"],"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/mystroken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-05T06:07:15.000Z","updated_at":"2019-05-07T19:13:16.000Z","dependencies_parsed_at":"2022-08-24T14:58:17.955Z","dependency_job_id":null,"html_url":"https://github.com/mystroken/wordpruss","commit_stats":null,"previous_names":["companionsofwp/wordpruss"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mystroken%2Fwordpruss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mystroken%2Fwordpruss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mystroken%2Fwordpruss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mystroken%2Fwordpruss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mystroken","download_url":"https://codeload.github.com/mystroken/wordpruss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228165797,"owners_count":17879317,"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":["php","wordpress","wordpress-development"],"created_at":"2024-12-04T18:21:28.647Z","updated_at":"2024-12-04T18:21:29.458Z","avatar_url":"https://github.com/mystroken.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPruss\n\n[![Build Status](https://travis-ci.org/CompanionsOfWP/wordpruss.svg?branch=master)](https://travis-ci.org/CompanionsOfWP/wordpruss)\n[![Total Downloads](https://poser.pugx.org/wordpruss/wordpruss/downloads)](https://packagist.org/packages/wordpruss/wordpruss)\n[![License](https://poser.pugx.org/wordpruss/wordpruss/license)](https://packagist.org/packages/wordpruss/wordpruss)\n\n\nWordPruss is a reusable set of clean PHP classes that wrap WordPress functions for a fastly plugin or theme development.\n\n\n\n## Installation\n\nIt's recommended that you use [Composer](https://getcomposer.org/) to install WordPruss.\n\n```bash\n$ composer require wordpruss/wordpruss \"dev-master\"\n```\n\nThis will install WordPruss and all required dependencies. WordPruss requires PHP 5.6 or newer.\n\n\n## Usage\n\nHere is a Basic Example of the library usage:\n\n```php\n\u003c?php\n\n/*\n* Suppose that we need\n* to create an admin panel for our plugin.\n* Let's go\n*/\n\nrequire __DIR__. '/vendor/autoload.php';\n\nuse \\WordPruss\\AdminPanel\\Menu;\nuse \\WordPruss\\AdminPanel\\Panel;\n\n\n// Creates a new admin menu\n$adminMenu = new Menu([\n    'title' =\u003e 'My Plugin Name',\n    'slug' =\u003e 'my_plugin_name'\n]);\n\n// Create a panel for the menu\n$adminPanel = new Panel([\n    'title' =\u003e 'Plugin Name - Welcome to the settings page',\n    'role' =\u003e 'manage_options',\n    'callback' =\u003e function() {\n        echo '\u003ch1\u003eHello World !\u003c/h1\u003e';\n    }\n]);\n\n$adminMenu\n// Links panel to the menu\n    -\u003esetPanel($adminPanel)\n// Adds the menu to WordPress admin menus list\n    -\u003eattach();\n```\n\n\nFor more information on how to configure your web server, see the [Documentation](https://mystroken.github.io/wordpruss/).\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover security related issues, please email mystroken@gmail.com or use the issue tracker.\n\n## License\nWordPruss is an open-sourced library licensed under the MIT license. See [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystroken%2Fwordpruss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmystroken%2Fwordpruss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmystroken%2Fwordpruss/lists"}