PHPackages                             doubleleft/hook - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. doubleleft/hook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

doubleleft/hook
===============

backend as a service

v0.4.0(10y ago)771981[27 issues](https://github.com/doubleleft/hook/issues)MITPHPPHP &gt;=5.4.0

Since Feb 19Pushed 9y ago63 watchersCompare

[ Source](https://github.com/doubleleft/hook)[ Packagist](https://packagist.org/packages/doubleleft/hook)[ RSS](/packages/doubleleft-hook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (23)Versions (4)Used By (0)

[![hook](https://github.com/doubleleft/hook/raw/master/logo.png?raw=true)](https://github.com/doubleleft/hook/blob/master/logo.png?raw=true)

Welcome to hook
===============

[](#welcome-to-hook)

[![](https://camo.githubusercontent.com/3da7ea007288c7a8b14c8c84f0836d66ba8f82bd2f3b72fb7e0e72e19a16d28f/68747470733a2f2f7777772e6865726f6b7563646e2e636f6d2f6465706c6f792f627574746f6e2e706e67)](https://heroku.com/deploy?template=https%3A%2F%2Fgithub.com%2Fdoubleleft%2Fhook%2Ftree%2Fmaster)[![Build status](https://camo.githubusercontent.com/667d75d5ce57b3dfdc6df079040d7a2ffed0cae09b68165a393e4b053d6c509f/68747470733a2f2f7472617669732d63692e6f72672f646f75626c656c6566742f686f6f6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/doubleleft/hook)[!\[Gitter\](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/doubleleft/hook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

hook is a RESTful, extendable Backend as a Service that provides instant backend to develop sites and apps faster, with dead-simple integration for iOS, Android, JavaScript and more.

**Requirements**: PHP 5.5+, or [PHP 5.3](http://doubleleft.github.io/hook-userguide/More/Deployment/#deploying-on-php-53).

- [Features](#features)
- [Installation](#installation)
- [How to use](#how-to-use)
- [Documentation](http://doubleleft.github.io/hook-userguide/)
- [Examples](https://github.com/doubleleft/hook-examples)

Features
--------

[](#features)

- Multitenancy (same instance may be used for many apps)
- User authentication (register, login, reset password)
- Data persistance through `collections`
- Data storage through [many providers](http://doubleleft.github.io/hook-userguide/The-Basics/Configuration/#storage-providers)
- Real-time communication through [WAMP](http://wamp.ws) subprotocol (WebSockets).
- [Package management](http://doubleleft.github.io/hook-userguide/The-Basics/Configuration/#composer-packages) through composer

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

[](#installation)

Run this command in your terminal to get the lastest version:

```
curl -sSL https://raw.githubusercontent.com/doubleleft/hook/master/scripts/install.sh | bash
```

At the end of the process you should have [hook](https://github.com/doubleleft/hook) and [hook-cli](https://github.com/doubleleft/hook-cli.git) installed in your machine.

How to use
----------

[](#how-to-use)

Run the server locally:

```
hook server

```

Create a new application from the commandine:

```
hook app:new my-app --endpoint http://0.0.0.0:4665

```

It will output access keys to use in the front-end. Checkout this example using [JavaScript](https://github.com/doubleleft/hook-javascript#how-to-use) frontend.

Take a look at the [documentation](http://doubleleft.github.io/hook-userguide/) for more details.

Front-end Integration
---------------------

[](#front-end-integration)

Reduce the gap between backend and frontend development:

- [JavaScript](https://github.com/doubleleft/hook-javascript) ([docs](http://doubleleft.github.io/hook-javascript))
- [C# / Unity3D](https://github.com/doubleleft/hook-csharp)
- [Corona SDK](https://github.com/doubleleft/hook-corona-sdk)
- [iOS / OSX](https://github.com/doubleleft/hook-swift)
- [Java / Android](https://github.com/doubleleft/hook-android)
- [C++](https://github.com/doubleleft/hook-cpp)
- [PHP](https://github.com/doubleleft/hook-php) ([docs](http://doubleleft.github.io/hook-php))
- [Ruby](https://github.com/doubleleft/hook-ruby) ([docs](http://doubleleft.github.io/hook-ruby/))
- [Flash / ActionScript 3.0](https://github.com/doubleleft/hook-as3)

License
-------

[](#license)

MIT.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.5% 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 ~71 days

Total

2

Last Release

3956d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9be4eac04f2b81f8077124dfbf653488512557fa5193e6d57c473d7ec9b25fd6?d=identicon)[endel](/maintainers/endel)

---

Top Contributors

[![endel](https://avatars.githubusercontent.com/u/130494?v=4)](https://github.com/endel "endel (781 commits)")[![gabriel-laet](https://avatars.githubusercontent.com/u/73142?v=4)](https://github.com/gabriel-laet "gabriel-laet (27 commits)")[![alinefr](https://avatars.githubusercontent.com/u/4754654?v=4)](https://github.com/alinefr "alinefr (14 commits)")[![gilnak](https://avatars.githubusercontent.com/u/1638094?v=4)](https://github.com/gilnak "gilnak (9 commits)")[![matheusrrocha](https://avatars.githubusercontent.com/u/889519?v=4)](https://github.com/matheusrrocha "matheusrrocha (2 commits)")[![vicalejuri](https://avatars.githubusercontent.com/u/91731?v=4)](https://github.com/vicalejuri "vicalejuri (1 commits)")[![wagnermoschini](https://avatars.githubusercontent.com/u/1307019?v=4)](https://github.com/wagnermoschini "wagnermoschini (1 commits)")

---

Tags

baasbackend-as-a-servicephpHOOKdoubleleft

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/doubleleft-hook/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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