{"id":15061402,"url":"https://github.com/alexskrypnyk/drupal_helpers","last_synced_at":"2025-10-04T21:31:15.194Z","repository":{"id":43135430,"uuid":"20871098","full_name":"AlexSkrypnyk/drupal_helpers","owner":"AlexSkrypnyk","description":"Helper classes for Drupal","archived":true,"fork":false,"pushed_at":"2020-02-24T03:07:33.000Z","size":137,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"7.x-1.x","last_synced_at":"2024-09-29T07:04:12.686Z","etag":null,"topics":["drupal","drupal-helpers","php","update","utility"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/drupal_helpers","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexSkrypnyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-16T02:59:03.000Z","updated_at":"2023-03-08T00:19:43.000Z","dependencies_parsed_at":"2022-08-30T09:42:08.408Z","dependency_job_id":null,"html_url":"https://github.com/AlexSkrypnyk/drupal_helpers","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSkrypnyk%2Fdrupal_helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSkrypnyk%2Fdrupal_helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSkrypnyk%2Fdrupal_helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSkrypnyk%2Fdrupal_helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexSkrypnyk","download_url":"https://codeload.github.com/AlexSkrypnyk/drupal_helpers/tar.gz/refs/heads/7.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876759,"owners_count":16554786,"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":["drupal","drupal-helpers","php","update","utility"],"created_at":"2024-09-24T23:19:12.521Z","updated_at":"2025-10-04T21:31:09.908Z","avatar_url":"https://github.com/AlexSkrypnyk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Drupal Helpers\n==============\n\nA library of Drupal-related PHP helpers for Drupal 7 core and contrib modules.\n\n[![CircleCI](https://circleci.com/gh/integratedexperts/drupal_helpers.svg?style=svg)](https://circleci.com/gh/integratedexperts/drupal_helpers)\n\nFunctionality\n-------------\n\n* Bean\n  * Create or load a bean.\n* Block\n  * Render a block.\n  * Place or remove a block in/from a region using core block module.\n  * Remove all blocks from all regions oin a specified theme.\n  * Set the block visibility.\n* Entity\n  * Get label for entity bundle.\n* Feature\n  * Revert a feature.\n* Field\n  * Delete a field.\n  * Delete an instance of a field.\n  * Get and Set field configurations.\n  * Change the max length of a Text field that contains content.\n* General\n  * Print CLI and web messages.\n* Menu\n  * Add, update, delete and find menu items in specified menu.\n  * Find children and siblings of a menu item.\n  * Import menu from the array-like tree.\n* Module\n\t* Enable, disable or uninstall a module.\n* Random\n \t* Generate random: string, name, IP address, phone number, email, date of birth, path.\n\t* Get random array items.\n* System\n\t* Get or set the weight of the module, theme or profile.\n\t* Check the status of the module, theme or profile.\n* Taxonomy\n\t* Create form element options from terms in provided vocabulary.\n\t* Find single term by name.\n\t* Create terms hierarchy from simple tree.\n\t* Remove all terms from vocabulary.\n* Theme\n\t* Set a theme as the default or admin theme.\n\t* Enable or disable a theme.\n\t* Set theme setting.\n* User\n\t* Create user with specified fields and roles.\n* Utility\n\t* Recursively remove empty elements from array.\n\t* Retrieve array column.\n* Variable\n\t* Set and get variable values using strict match, wildcard or regexp.\n\t* Variable value storage - store/restore variable values in bulk.\n\nUsage\n-----\n\nUse the Drupal helpers classes to perform common tasks during your Drupal module updates.\n\n```php\n\u003c?php\n\n/**\n * @file\n * example.install uninstall and update implementations.\n */\n\nuse Drupal\\drupal_helpers\\Module;\nuse Drupal\\drupal_helpers\\Feature;\nuse Drupal\\drupal_helpers\\General;\n\n/**\n * Enable Views and Revert 'mysite' features.\n */\nfunction example_update_7001 () {\n  // Enable views.\n  Module::enable('views');\n\n  // Revert mysite features.\n  Feature::revert('mysite_features');\n\n  // Print My message.\n  General::messageSet('My message');\n}\n```\n\nDependencies\n------------\n\n- [X Autoload](https://www.drupal.org/project/xautoload)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexskrypnyk%2Fdrupal_helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexskrypnyk%2Fdrupal_helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexskrypnyk%2Fdrupal_helpers/lists"}