{"id":25363488,"url":"https://github.com/vitexsoftware/php-ease-twbootstrap5","last_synced_at":"2025-10-30T01:31:54.407Z","repository":{"id":62550185,"uuid":"351600860","full_name":"VitexSoftware/php-ease-twbootstrap5","owner":"VitexSoftware","description":"TwitterBootstrap5 classes for EasePHP Framework ","archived":false,"fork":false,"pushed_at":"2025-01-09T05:10:21.000Z","size":117,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-09T06:31:15.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/VitexSoftware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-25T23:10:47.000Z","updated_at":"2025-01-09T05:10:25.000Z","dependencies_parsed_at":"2024-02-08T16:43:15.146Z","dependency_job_id":"85d434b4-4400-41e4-bf9f-53ab5c373e23","html_url":"https://github.com/VitexSoftware/php-ease-twbootstrap5","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitexSoftware%2Fphp-ease-twbootstrap5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitexSoftware%2Fphp-ease-twbootstrap5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitexSoftware%2Fphp-ease-twbootstrap5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VitexSoftware%2Fphp-ease-twbootstrap5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VitexSoftware","download_url":"https://codeload.github.com/VitexSoftware/php-ease-twbootstrap5/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238920882,"owners_count":19552674,"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":[],"created_at":"2025-02-14T22:33:17.040Z","updated_at":"2025-10-30T01:31:53.967Z","avatar_url":"https://github.com/VitexSoftware.png","language":"PHP","readme":"# php-ease-twbootstrap5\nTwitterBootstrap5 classes for EasePHP Framework \n\n\u003e **Note**: If you are looking for a similar PHP library for Bootstrap 4, you can find it at [php-ease-twbootstrap4](https://github.com/VitexSoftware/php-ease-twbootstrap4.git).\n\n## Overview\nThis initial release includes a set of PHP classes designed to facilitate the creation of web components using Twitter Bootstrap 5. Each class corresponds to a specific Bootstrap component, providing an easy-to-use interface for integrating these components into your web applications.\n\n## Classes and Their Functionalities\n\n### Alert.php\n- **Functionality**: Create and manage Bootstrap alert messages.\n- **Features**: Supports different alert types (success, danger, warning, info), dismissible alerts, and custom messages.\n\n```php\nuse Ease\\TwBootstrap5\\Alert;\n\n$alert = new Alert('This is a success alert!', 'success');\necho $alert-\u003edraw();\n```\n\n### Badge.php\n- **Functionality**: Generate Bootstrap badges.\n- **Features**: Supports different badge styles and contextual colors.\n\n```php\nuse Ease\\TwBootstrap5\\Badge;\n\n$badge = new Badge('New', 'primary');\necho $badge-\u003edraw();\n```\n\n### Card.php\n- **Functionality**: Create Bootstrap card components.\n- **Features**: Supports card headers, footers, images, and various content types.\n\n```php\nuse Ease\\TwBootstrap5\\Card;\n\n$card = new Card('Card Title', 'This is some text within a card body.');\necho $card-\u003edraw();\n```\n\n### Col.php\n- **Functionality**: Define column layouts using Bootstrap's grid system.\n- **Features**: Supports different column sizes and responsive breakpoints.\n\n### Container.php\n- **Functionality**: Create Bootstrap container elements.\n- **Features**: Supports fluid and fixed-width containers.\n\n```php\nuse Ease\\TwBootstrap5\\Container;\n\n$container = new Container('This is a container.');\necho $container-\u003edraw();\n```\n\n### Form.php\n- **Functionality**: Generate Bootstrap forms.\n- **Features**: Supports various form controls, validation states, and layout options.\n\n```php\nuse Ease\\TwBootstrap5\\Form;\n\n$form = new Form('POST', '/submit');\n$form-\u003eaddItem(new Input('text', 'username', 'Username'));\necho $form-\u003edraw();\n```\n\n### FormGroup.php\n- **Functionality**: Group form controls with labels and help text.\n- **Features**: Supports different form group layouts and validation states.\n\n### InputGroup.php\n- **Functionality**: Create input groups with prepend and append elements.\n- **Features**: Supports various input types and custom elements.\n\n### LinkButton.php\n- **Functionality**: Generate Bootstrap-styled link buttons.\n- **Features**: Supports different button styles and sizes.\n\n```php\nuse Ease\\TwBootstrap5\\LinkButton;\n\n$linkButton = new LinkButton('Click Me', 'https://example.com', 'primary');\necho $linkButton-\u003edraw();\n```\n\n### NavItemDropDown.php\n- **Functionality**: Create dropdown items for navigation bars.\n- **Features**: Supports nested dropdowns and various alignment options.\n\n```php\nuse Ease\\TwBootstrap5\\NavItemDropDown;\n\n$dropdown = new NavItemDropDown('Dropdown', [\n    'Action' =\u003e '#action',\n    'Another action' =\u003e '#another-action',\n    'Something else here' =\u003e '#something-else'\n]);\necho $dropdown-\u003edraw();\n```\n\n### Navbar.php\n- **Functionality**: Generate Bootstrap navigation bars.\n- **Features**: Supports different navbar styles, responsive behaviors, and brand elements.\n\n```php\nuse Ease\\TwBootstrap5\\Navbar;\n\n$navbar = new Navbar('My Website', [\n    'Home' =\u003e '#home',\n    'About' =\u003e '#about',\n    'Contact' =\u003e '#contact'\n]);\necho $navbar-\u003edraw();\n```\n\n### Panel.php\n- **Functionality**: Create Bootstrap panels.\n- **Features**: Supports panel headers, footers, and various content types.\n\n### Part.php\n- **Functionality**: Base class for reusable component parts.\n- **Features**: Provides common functionality for other components.\n\n### Row.php\n- **Functionality**: Define row layouts using Bootstrap's grid system.\n- **Features**: Supports different row configurations and responsive breakpoints.\n\n```php\nuse Ease\\TwBootstrap5\\Row;\n\n$row = new Row([\n    new Col('Column 1', 6),\n    new Col('Column 2', 6)\n]);\necho $row-\u003edraw();\n```\n\n### SubmitButton.php\n- **Functionality**: Generate Bootstrap-styled submit buttons.\n- **Features**: Supports different button styles and sizes.\n\n```php\nuse Ease\\TwBootstrap5\\SubmitButton;\n\n$submitButton = new SubmitButton('Submit', 'primary');\necho $submitButton-\u003edraw();\n```\n\n### Table.php\n- **Functionality**: Create Bootstrap-styled tables.\n- **Features**: Supports striped, bordered, hoverable, and responsive tables.\n\n```php\nuse Ease\\TwBootstrap5\\Table;\n\n$table = new Table([\n    ['Header 1', 'Header 2'],\n    ['Row 1 Col 1', 'Row 1 Col 2'],\n    ['Row 2 Col 1', 'Row 2 Col 2']\n]);\necho $table-\u003edraw();\n```\n\n### Tabs.php\n- **Functionality**: Generate Bootstrap tab components.\n- **Features**: Supports different tab styles and dynamic content loading.\n\n### WebPage.php\n- **Functionality**: Base class for creating web pages with Bootstrap components.\n- **Features**: Provides common functionality for integrating various Bootstrap components into a web page.\n\n```php\nuse Ease\\TwBootstrap5\\WebPage;\n\n$page = new WebPage('My Web Page');\n$page-\u003eaddItem(new Container('This is the main content.'));\necho $page-\u003edraw();\n```\n\n## Conclusion\nThis release provides a comprehensive set of tools for integrating Bootstrap 5 components into your PHP applications, making it easier to create responsive and visually appealing web interfaces.\n\n\n## Installation\n\nTo install the library, you can use Composer. Run the following command in your project directory:\n\n```bash\ncomposer require vitexsoftware/php-ease-twbootstrap5\n```\n\nAlternatively, you can add the library to your `composer.json` file manually:\n\n```json\n{\n    \"require\": {\n        \"vitexsoftware/php-ease-twbootstrap5\": \"^0.1\"\n    }\n}\n```\n\nThen, run:\n\n```bash\ncomposer install\n```\n\nAfter installation, you can include the autoload file in your PHP scripts to start using the library:\n\n```php\nrequire 'vendor/autoload.php';\n```\n\nYou are now ready to use the TwitterBootstrap5 classes in your EasePHP Framework projects.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitexsoftware%2Fphp-ease-twbootstrap5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitexsoftware%2Fphp-ease-twbootstrap5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitexsoftware%2Fphp-ease-twbootstrap5/lists"}