Code Monkey home page Code Monkey logo

bowerphp's Introduction

Bowerphp

An implementation of bower in PHP.

http://bowerphp.org

travis build Code Climate Scrutinizer Code Quality insight

Installation

$ composer require beelab/bowerphp:1.0.*@dev

Configuration

Currently, you can configure your bower directory in .bowerrc file, just like the original Bower.

If you need many dependencies, you'll likely hit the Github API limit (currently 60 requests per hour). To increase your limit to 5000 requests per hour, you can use a token. See Github help. Once you created your token, just store it in the BOWERPHP_TOKEN environment variable.

Status

This project is in alpha status.

See currently open issues.

Contributing

All contribution are welcome, just take a look at our issues tracker if you want to start somewhere.

If you make a PR make sure that it follow the PSR2 standard. To make sure that your code comply with the standard, you can use a git hook with php-cs-fixer. There is one here that you only need to copy to your .git/hooks folder under the name of pre-commit and you are set.

Building the phar

One method to build the phar is to simply run:

php bin/compile

Another is to use the box command line utility If you add this config in a box.json file you only just need to run the two commands bellow to have a working phar.

###the commands

$ box build
$ chmod +x bower.phar

the box.json config

{
    "directories": ["src"],
    "files": ["LICENSE"],
    "finder": [
        {
            "name": "*.php",
            "exclude": ["Tests", "phpunit", "mockery"],
            "in": "vendor"
        }
    ],
    "main": "bin/bowerphp",
    "output": "bower.phar",
    "stub": true
}

bowerphp's People

Contributors

antontyutin avatar bauerj avatar bayne avatar garak avatar lordvlad avatar maurodalatri avatar maxakawizard avatar maxnuf avatar mikesimonson avatar piotrooo avatar shine-neko avatar varoot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.