Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8279989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:30:45+00:00 2026-06-08T09:30:45+00:00

I have installed Twitter Bootstrap Framework as a vendor in Symfony 2.1 using composer

  • 0

I have installed Twitter Bootstrap Framework as a vendor in Symfony 2.1 using composer package manager as a package from github repo. My intention is to “include” some files of this vendor inside of the ::base.html.twig layout directly, without having to create a Bundle to handle this.

How I can access files of a vendor like “vendor/twitter/bootstrap” from within a view ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:30:47+00:00Added an answer on June 8, 2026 at 9:30 am

    Oh sorry, i’ve found my own question when searching on google. I Lost the contents of the form the day I was trying to publish this question while submitting xD And thought it wasn’t published, and today, surprise LOL.

    Ty for all the answers, fortunately found the solution by myself. If my experience can help anyone… Since 2.1 version is posible to get the twitter bootstrap package from github and install it as a vendor using composer.phar

    In the composer.json file at the root of the project add this to the “require”: {} section:

    "twitter/bootstrap": "dev-master",
    

    Then at the “repositories”: {} section add:

        {
            "type": "package",
            "package": {
                "version": "master",
                "name": "twitter/bootstrap",
                "source": {
                    "url": "https://github.com/twitter/bootstrap.git",
                    "type": "git",
                    "reference": "master"
                },
                "dist": {
                    "url": "https://github.com/twitter/bootstrap/zipball/master",
                    "type": "zip"
                 }
            }
        },
    

    Then with node.js for windows installed u can execute:

    npm install -g less jshint recess uglify-js
    

    and

    make
    

    To compile again the docs subfolder that contains the compiled library or…

    make bootstrap
    

    That compiles the css, js, minified versions too in a bootstrap subfolder

    Then, is possible to call and make use of bootstrap this way:

    {% stylesheets '../vendor/twitter/bootstrap/bootstrap/css/bootstrap.min.css' %}
        <link rel="stylesheet" href="{{ asset_url }}" />
    {% endstylesheets %}
    
    {% javascripts '../vendor/twitter/bootstrap/bootstrap/js/bootstrap.min.js' %}
        <script src="{{ asset_url }}" type="text/javascript"></script>
    {% endjavascripts %}
    

    The advantage of this approach is that is possible to update the version of the vendor by simply using:

    cd /path/to/symfony/root/dir
    php composer.phar update Twitter/Bootstrap
    

    And compile again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed my dependencies using bundle package Then transferred them to the offline
I am using a Twitter Python package which is installed by easy_install twitter The
I have installed the acts_as_versioned plugin from github.com in my rails application, and there
I have a Rails app with Twitter Bootstrap installed. Bootstrap encapsulates each navigation bar
I have JQuery Twitter api plugin I have been using often from site to
I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
I am trying to track a set of keywords from Twitter by using the
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem
I have installed 1.1.9 Yii framework.Then I made copy paste user module in my
I have a working twitter bootstrap install and simple form generates the following: <form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.