PHPackages                             websafe/caq - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. websafe/caq

ActiveLibrary[Testing &amp; Quality](/categories/testing)

websafe/caq
===========

Composed Application Quickstarter

v0.0.6(13y ago)420MITShellPHP &gt;=5.3.3

Since Mar 5Pushed 12y ago2 watchersCompare

[ Source](https://github.com/websafe/caq)[ Packagist](https://packagist.org/packages/websafe/caq)[ Docs](http://websafe.github.com/caq/)[ RSS](/packages/websafe-caq/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

caq - Composed Application Quickstarter
=======================================

[](#caq---composed-application-quickstarter)

A simple [Bash](http://www.gnu.org/software/bash/bash.html "Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).") script for automated preparation of [Composer](http://getcomposer.org/ "Dependency Manager for PHP") based applications (i.e. [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") apps).

Installation
------------

[](#installation)

### General installation procedure

[](#general-installation-procedure)

Only `caq.sh`() is really required, download it into a location available via PATH and make it executable. That's all.

### Install using [PHP](http://php.net/ "A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.")

[](#install-using-php)

```
php -r \
    "copy('https://raw.github.com/websafe/caq/master/caq.sh', '/usr/bin/caq');"
chmod +x /usr/bin/caq

```

### Install using [GNU Wget](http://www.gnu.org/software/wget/ "A free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.")

[](#install-using-gnu-wget)

```
wget -nc \
    https://raw.github.com/websafe/caq/master/caq.sh \
    -O /usr/bin/caq
chmod +x /usr/bin/caq

```

`-ns` stands for `--no-clobber`:

> -nc, --no-clobber skip downloads that would download to existing files (overwriting them).

### Install using [Lynx](http://lynx.isc.org/ "Lynx is a highly configurable text-based web browser for use on cursor-addressable character cell terminals.")

[](#install-using-lynx)

```
lynx -dump \
    https://raw.github.com/websafe/caq/master/caq.sh \
    > /usr/bin/caq
chmod +x /usr/bin/caq

```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Basic usage is:

```
caq /

```

Examples
--------

[](#examples)

### Example 1. A [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication "Sample application skeleton using the ZF2 MVC layer") based project with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications")

[](#example-1-a-zendskeletonapplication-based-project-with-zendframework)

This will create a project located in directory `./my-example-1` based on [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication "Sample application skeleton using the ZF2 MVC layer") with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") installed as a [Composer](http://getcomposer.org/ "Dependency Manager for PHP")package in `./vendor/zendframework`:

```
caq myvendor/my-example-1 zf2-app

```

### Example 2. An empty project with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") libraries

[](#example-2-an-empty-project-with-zendframework-libraries)

This will create a project located in directory `./my-example-2` based on nothing (no skeleton application) with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") installed as a [Composer](http://getcomposer.org/ "Dependency Manager for PHP") package in `./vendor/zendframework`, in other words, a project with the pure framework, no application:

```
caq myvendor/my-example-2 zf2

```

### Example 3. A [Symfony Standard Edition](https://github.com/symfony/symfony-standard "The 'Symfony Standard Edition' distribution") based project.

[](#example-3-a-symfony-standard-edition-based-project)

This will create a project located in directory `./my-example-3` based on the [Symfony Standard Edition](https://github.com/symfony/symfony-standard "The 'Symfony Standard Edition' distribution") skeleton:

```
caq myvendor/my-example-3 symfony-standard

```

### Example 4. An empty project with [Symfony](http://symfony.com/ "The Symfony PHP framework") libraries

[](#example-4-an-empty-project-with-symfony-libraries)

This will create a project located in directory `./my-example-4` based on nothing (no skeleton application) with [Symfony](http://symfony.com/ "The Symfony PHP framework") installed as [Composer](http://getcomposer.org/ "Dependency Manager for PHP")package in `./vendor/symfony`:

```
caq myvendor/my-example-4 symfony

```

### Example 5. A [WordPress](https://github.com/WordPress/WordPress "Blog Tool, Publishing Platform and CMS") based project

[](#example-5-a-wordpress-based-project)

This will create a project located in directory `./my-example-5` based on [WordPress](https://github.com/WordPress/WordPress "Blog Tool, Publishing Platform and CMS"):

```
caq myvendor/my-example-5 wordpress

```

### Example 6. A [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication "Sample application skeleton using the ZF2 MVC layer") based project with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") libraries and [ZfcUser](https://github.com/ZF-Commons/ZfcUser "A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2.") module

[](#example-6-a-zendskeletonapplication-based-project-with-zendframework-libraries-and-zfcuser-module)

This will create a project located in directory `./my-example-6` based on [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication "Sample application skeleton using the ZF2 MVC layer") with [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") installed as a [Composer](http://getcomposer.org/ "Dependency Manager for PHP")package in `./vendor/zendframework/zendframework` and [ZfcUser](https://github.com/ZF-Commons/ZfcUser "A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2.") module installed as a [Composer](http://getcomposer.org/ "Dependency Manager for PHP") package in `./vendor/zf-commons/zfc-user`:

```
caq myvendor/my-example-6 zf2-app-zfc-user

```

### Example 7. An empty project with [Twig](https://github.com/fabpot/Twig "Twig, the flexible, fast, and secure template language for PHP") libraries.

[](#example-7-an-empty-project-with-twig-libraries)

This will create an empty project located in directory `./my-example-7`with [Twig](https://github.com/fabpot/Twig "Twig, the flexible, fast, and secure template language for PHP") libraries installed as a [Composer](http://getcomposer.org/ "Dependency Manager for PHP") package in `./vendor/twig/twig`:

```
caq myvendor/my-example-7 twig

```

### Example 8. A [Kohana PHP Framework](http://kohanaframework.org/ "An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.") based project.

[](#example-8-a-kohana-php-framework-based-project)

This will create a [Kohana PHP Framework](http://kohanaframework.org/ "An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.") based project located in directory `./my-example-8`:

```
caq myvendor/my-example-8 kohana

```

### Example 9. A [Drupal](http://drupal.org/ "Drupal is an open source content management platform powering millions of websites and applications.") based project.

[](#example-9-a-drupal-based-project)

This will create a [Drupal](http://drupal.org/ "Drupal is an open source content management platform powering millions of websites and applications.") based project located in directory `./my-example-9`:

```
caq myvendor/my-example-9 drupal

```

### Example 10. A [CodeIgniter](https://github.com/EllisLab/CodeIgniter "CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.") based project.

[](#example-10-a-codeigniter-based-project)

This will create a [CodeIgniter](https://github.com/EllisLab/CodeIgniter "CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.") based project located in directory `./my-example-10`:

```
caq myvendor/my-example-10 codeigniter

```

### Example 11. A [Joomla](http://www.joomla.org/ "Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications.") based project.

[](#example-11-a-joomla-based-project)

This will create a [Joomla](http://www.joomla.org/ "Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications.") based project located in directory `./my-example-11`:

```
caq myvendor/my-example-11 joomla

```

Contributing
------------

[](#contributing)

- Start using [caq](http://websafe.github.com/caq/ "caq - Composed Application Quickstarter")!
- [Report issues](https://github.com/websafe/caq/issues "Caq - Report issues")
- [Request features](https://github.com/websafe/caq/issues?labels=enhancement&page=1&state=open "Caq - Request features")
- Read [14 Ways to Contribute to Open Source without Being a Programming Genius](http://blog.smartbear.com/software-quality/bid/167051/14-Ways-to-Contribute-to-Open-Source-without-Being-a-Programming-Genius-or-a-Rock-Star)

Requirements
------------

[](#requirements)

- [Bash](http://www.gnu.org/software/bash/bash.html "Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).")
- [Composer](http://getcomposer.org/ "Dependency Manager for PHP")
- [Git](http://git-scm.com/ "A free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.")
- [grep](http://www.gnu.org/software/grep/ "Grep is a command-line utility for searching plain-text data sets for lines matching a regular expression.")
- [PHP](http://php.net/ "A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.")
- [GNU sed](http://www.gnu.org/software/sed/ "A Unix utility that parses text and implements a programming language which can apply transformations to such text.")

TODO
----

[](#todo)

- create documentation describing \[Profiles\]
- classmap\_generator after installing deps
- User configs profiles in ~/.caq/
- User templates for faster creation of projects (stored in ~/.caq/templates)
- Plugins
- Profiles testsuite
- travis
- Windows/Cygwin compatible

How caq works
-------------

[](#how-caq-works)

### The basic procedure

[](#the-basic-procedure)

**THIS SECTION IS INCOMPLETE**

1. If there is a \[Skeleton Application\] URI configured, try to clone this repo into projects root directory. If no skeleton URI was configured, skip to next step.
2. Install [Composer](http://getcomposer.org/ "Dependency Manager for PHP") in vendor/bin of projects root directory.
3. Selfupdate the previously installed [Composer](http://getcomposer.org/ "Dependency Manager for PHP")
4. Install all packages ([Composer](http://getcomposer.org/ "Dependency Manager for PHP") packages) configured for the current Profile. If no packages were defined, skip to next step.

Basically, when You don't define a Skeleton Application URI (SA) and don't define any packages (PKG/PKGD) You'll end up with an empty project, containing:

```
empty
|-- .git
|-- vendor
|   |-- bin
|   |   `-- composer.phar
|   |-- composer
|   |   |-- ClassLoader.php
|   |   |-- autoload_classmap.php
|   |   |-- autoload_namespaces.php
|   |   `-- autoload_real.php
|   `-- autoload.php
|-- LICENSE
|-- README.md
`-- composer.json

```

License
-------

[](#license)

caq - Composed Application Quickstarter ()

Copyright (c) 2013 Thomas Szteliga ,

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Links
-----

[](#links)

- [14 Ways to Contribute to Open Source without Being a Programming Genius](http://blog.smartbear.com/software-quality/bid/167051/14-Ways-to-Contribute-to-Open-Source-without-Being-a-Programming-Genius-or-a-Rock-Star) -
- [Bash](http://www.gnu.org/software/bash/bash.html "Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).") - Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh).
- [CakePHP](https://github.com/cakephp/cakephp "CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.") - CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.
- [caq](http://websafe.github.com/caq/ "caq - Composed Application Quickstarter") - caq - Composed Application Quickstarter
- [CodeIgniter](https://github.com/EllisLab/CodeIgniter "CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.") - CodeIgniter is a proven, agile &amp; open PHP web application framework with a small footprint. It is powering the next generation of web apps.
- [CodeIgniter](https://github.com/EllisLab/CodeIgniter "CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.") - CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP.
- [Composer](http://getcomposer.org/ "Dependency Manager for PHP") - Dependency Manager for PHP
- [Drupal](http://drupal.org/ "Drupal is an open source content management platform powering millions of websites and applications.") - Drupal is an open source content management platform powering millions of websites and applications.
- [Git](http://git-scm.com/ "A free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.") - A free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
- [GitHub](https://github.com/ "Online project hosting using Git.") - Online project hosting using Git.
- [GNU sed](http://www.gnu.org/software/sed/ "A Unix utility that parses text and implements a programming language which can apply transformations to such text.") - A Unix utility that parses text and implements a programming language which can apply transformations to such text.
- [GNU Wget](http://www.gnu.org/software/wget/ "A free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.") - A free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.
- [grep](http://www.gnu.org/software/grep/ "Grep is a command-line utility for searching plain-text data sets for lines matching a regular expression.") - Grep is a command-line utility for searching plain-text data sets for lines matching a regular expression.
- [Joomla](http://www.joomla.org/ "Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications.") - Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications.
- [Kohana PHP Framework](http://kohanaframework.org/ "An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.") - An elegant HMVC PHP5 framework that provides a rich set of components for building web applications.
- [Lynx](http://lynx.isc.org/ "Lynx is a highly configurable text-based web browser for use on cursor-addressable character cell terminals.") - Lynx is a highly configurable text-based web browser for use on cursor-addressable character cell terminals.
- [PHP](http://php.net/ "A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.") - A widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
- [phpDocumentor](http://www.phpdoc.org/ "Documentation Generator for PHP") - Documentation Generator for PHP
- [PHPUnit](https://github.com/sebastianbergmann/phpunit/ "The PHP Unit Testing framework") - The PHP Unit Testing framework
- [Report issues](https://github.com/websafe/caq/issues "Caq - Report issues") - Caq - Report issues
- [Request features](https://github.com/websafe/caq/issues?labels=enhancement&page=1&state=open "Caq - Request features") - Caq - Request features
- [Symfony](http://symfony.com/ "The Symfony PHP framework") - The Symfony PHP framework
- [Symfony Standard Edition](https://github.com/symfony/symfony-standard "The 'Symfony Standard Edition' distribution") - The 'Symfony Standard Edition' distribution
- [Twig](https://github.com/fabpot/Twig "Twig, the flexible, fast, and secure template language for PHP") - Twig, the flexible, fast, and secure template language for PHP
- [Wiki](https://github.com/websafe/caq/wiki/ "Caq Wiki") - Caq Wiki
- [WordPress](https://github.com/WordPress/WordPress "Blog Tool, Publishing Platform and CMS") - Blog Tool, Publishing Platform and CMS
- [ZendFramework](http://framework.zend.com/ "Framework for modern high-performing PHP applications") - Framework for modern high-performing PHP applications
- [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication "Sample application skeleton using the ZF2 MVC layer") - Sample application skeleton using the ZF2 MVC layer
- [ZfcUser](https://github.com/ZF-Commons/ZfcUser "A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2.") - A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

4865d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/412013?v=4)[Thomas Szteliga](/maintainers/websafe)[@websafe](https://github.com/websafe)

---

Top Contributors

[![websafe](https://avatars.githubusercontent.com/u/412013?v=4)](https://github.com/websafe "websafe (136 commits)")

---

Tags

phpcomposerphpunitsymfonyautomationdevelopmentZendFrameworkprojectscriptbashquickstartwebdeveloper

### Embed Badge

![Health badge](/badges/websafe-caq/health.svg)

```
[![Health](https://phpackages.com/badges/websafe-caq/health.svg)](https://phpackages.com/packages/websafe-caq)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k100.2M2.1k](/packages/behat-behat)[zoon/puphpeteer

A Puppeteer bridge for PHP, supporting the entire API.

209226.1k1](/packages/zoon-puphpeteer)[df/php-coverfish

lightweight static code analysis tool for class coverage check of PHPUnit's CodeCoverage

234.9k1](/packages/df-php-coverfish)[sci3ma/symfony-grumphp

Configured GrumPHP with bunch of tools for static code analysis Symfony Framework

196.8k](/packages/sci3ma-symfony-grumphp)[cable8mm/water-melon

Water Melon is simple melon.com api sdk for php

182.8k](/packages/cable8mm-water-melon)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.4k13](/packages/lastzero-test-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
