PHPackages                             hydra/app - 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. [Framework](/categories/framework)
4. /
5. hydra/app

ActiveLibrary[Framework](/categories/framework)

hydra/app
=========

An application template for Hydra, the cozy RESTfull PHP5.3 micro-framework.

47PHP

Since Aug 12Pushed 13y ago1 watchersCompare

[ Source](https://github.com/z7/hydra_app)[ Packagist](https://packagist.org/packages/hydra/app)[ RSS](/packages/hydra-app/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hydra application skeleton
==========================

[](#hydra-application-skeleton)

This is an application for Hydra, the cozy RESTfull PHP5.3 micro-framework. See

Configuration
-------------

[](#configuration)

There is a main configuration file - /app/config.php, where you can adjust the settings to your likes.

To adjust core config options, you'll have to edit /web/index.php.

/data folder
------------

[](#data-folder)

You should give web server write access ONLY to this folder and its contents.

The /data/web subfolder will store uploaded files accesible at an address of the form

/web folder
-----------

[](#web-folder)

Store all your public assets (images, css, js) there.

If you use 3rd party libraries, use CDN, like If there is no CDN for your lib, then drop it in it's own /web/vendor/LIBRARY-NAME subfolder.

If you need to serve dynamic assets, append a '.php' extension.

Example: to serve a  create a /web/js/deynamic.js.php file like this:

expires(60 \* 60 \* 24, true); // cache response for 1 day ?&gt; alert(query\['foo'\]) ?&gt;);

/app/src subfolder
------------------

[](#appsrc-subfolder)

Store hooks in directly in src folder.

Store all application classes here.

IMPORTANT: Use App namespace. For example, a \\App\\Controller\\SampleController class should be stored in src/App/Controller/SampleController.php.

/app/views subfolder
--------------------

[](#appviews-subfolder)

Store all your Twig views here.

/app/plugins subfolder
----------------------

[](#appplugins-subfolder)

Store 3rd party Hydra plugins here Each plugin may contain the following:

- src/ folder with classes. The plugin is responsable for registering classes with autoloader. If it provides public controllers, routes should be explicitly registered as well.
- web/ folder with web assets, accesible at 3rd party libraries should be placed in a web/vendor/ subfolders.
- hooks/ folder with any number of \*.hook.php files (auto-detected).
- views/ folder (templates should be explicitly registered).
- vendor/ PHP libraries.
- README.md file.
- composer.json file if the plugin has PHP dependecies (see vendor/ libs).

Plugins may be nested in subfolder, but in this case the "web" directory should be served by the plugin itself.

IDE integration
---------------

[](#ide-integration)

If you have method or service declarations in your hook files, create src/ide\_helper.php file with php docs describing your method signatures.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2af94026f7f4f4fda3e8b7cb68a7cf60d1544befc629630765c0c99853f64633?d=identicon)[z7](/maintainers/z7)

---

Top Contributors

[![sandulungu](https://avatars.githubusercontent.com/u/196155?v=4)](https://github.com/sandulungu "sandulungu (1 commits)")

### Embed Badge

![Health badge](/badges/hydra-app/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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