{"id":16674878,"url":"https://github.com/hackzilla/bootstrap-bundle","last_synced_at":"2025-06-30T16:32:39.743Z","repository":{"id":16191813,"uuid":"18938454","full_name":"hackzilla/bootstrap-bundle","owner":"hackzilla","description":"Bootstrap Helper Bundle for Symfony2","archived":false,"fork":false,"pushed_at":"2015-01-12T16:51:43.000Z","size":240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T20:51:57.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hackzilla.org","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackzilla.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}},"created_at":"2014-04-19T09:53:28.000Z","updated_at":"2015-01-12T16:51:43.000Z","dependencies_parsed_at":"2022-08-04T08:15:16.155Z","dependency_job_id":null,"html_url":"https://github.com/hackzilla/bootstrap-bundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2Fbootstrap-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2Fbootstrap-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2Fbootstrap-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackzilla%2Fbootstrap-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackzilla","download_url":"https://codeload.github.com/hackzilla/bootstrap-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243331719,"owners_count":20274326,"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":"2024-10-12T12:44:45.403Z","updated_at":"2025-03-13T03:24:27.552Z","avatar_url":"https://github.com/hackzilla.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Boostrap Helper Bundle for Symfony2\n===================================\n\nRequirements\n------------\n\n* java\n* nodejs (npm \u0026 less)\n* cssembed [https://github.com/nzakas/cssembed/downloads]\n* yuicompressor [https://github.com/yui/yuicompressor/downloads]\n\nSystem Setup\n------------\n\nFor ubuntu, run the following commands to install necessary dependencies.\n\n```bash\napt-get install java-common nodejs npm\nnpm install -g less\n```\n\nInstallation\n------------\n\nAdd HackzillaBootstrapBundle in your composer.json:\n\n```json\n{\n    \"require\": {\n        \"hackzilla/bootstrap-bundle\": \"~0.2\",\n    }\n}\n```\n\nNow tell composer to download the bundle by running the command:\n\n``` bash\n$ php composer.phar update hackzilla/bootstrap-bundle\n```\n\nComposer will install the bundle into your project's `vendor/hackzilla` directory.\n\n### Step 2: Enable the bundle\n\nEnable the bundle in the kernel:\n\n``` php\n\u003c?php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Hackzilla\\Bundle\\BootstrapBundle\\HackzillaBootstrapBundle(),\n        // ...\n        // Your application bundles\n    );\n}\n```\n\nCopy cssembed.jar, and yuicompressor.jar to /app/Resources/java/\n\nAdd to config.yml\n\n```yml\n# Twig Configuration\ntwig:\n    form:\n        resources:\n          - 'HackzillaBoostrapBundle:Form:fields.html.twig'\n```\n\nIf nodejs path is different on your system, then update it here.\n\nPossible values are:\n* /usr/local/bin/node\n* /usr/bin/node\n* /usr/bin/nodejs\n\n```yml\n# Assetic Configuration\nassetic:\n    java: /usr/bin/java\n    filters:\n      cssembed:\n        jar: %kernel.root_dir%/Resources/java/cssembed-\u003cversion\u003e.jar\n      cssrewrite: ~\n      yui_js:\n        jar: %kernel.root_dir%/Resources/java/yuicompressor-\u003cversion\u003e.jar\n      less:\n          node: /usr/local/bin/node\n          node_paths: [/usr/local/lib/node_modules]\n          apply_to: \"\\.less$\"\n    assets:\n      bootstrap_js:\n          inputs:\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/affix.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/alert.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/button.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/carousel.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/collapse.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/dropdown.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/modal.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/tooltip.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/popover.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/scrollspy.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/tab.js'\n              - '%kernel.root_dir%/../vendor/twbs/bootstrap/js/transition.js'\n          filters: [?yui_js]\n      bootstrap_less:\n          inputs:\n              - '@HackzillaBootstrapBundle/Resources/less/compile.less'\n          filters: [less,cssembed]\n```\n\n- [Example base.html.twig](Resources/doc/base.html.twig)\n\n\nFonts\n-----\n\nin web directory create symlink to the bootstrap fonts\n\n```ln -s  ../vendor/twbs/bootstrap/fonts```\n\n\n(Re)Generate bootstrap.js and bootstrap.css\n-------------------------------------------\n\n```\napp/console assetic:dump --env=prod --no-debug;\napp/console assetic:dump --env=dev;\n```\n\nAdvanced usage\n==============\n\nCopy @HackzillaBootstrapBundle/Resources/less/compile.less and @HackzillaBootstrapBundle/Resources/less/variables.less to your own folder resources folder, and update bootstrap_less section in your config.\n\n~~Alternatively copy @HackzillaBootstrapBundle/Resources/less/variables.less to /app/Resources/HackzillaBootstrapBundle/less/variables.less~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackzilla%2Fbootstrap-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackzilla%2Fbootstrap-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackzilla%2Fbootstrap-bundle/lists"}