PHPackages                             codifico/actions - 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. codifico/actions

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

codifico/actions
================

Action component

0137PHP

Since Oct 28Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Actions
=======

[](#actions)

Common action based coupled to components:

- [The HttpFoundation Component](http://symfony.com/doc/current/components/form/introduction.html)
- [The Form Component](http://symfony.com/doc/current/components/http_foundation/introduction.html)

Allows you to quickly create CRUD actions.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/95b49754dbbfc8219fccf487dd33ecdf58f1773d33de68aed10ad67a031ec0ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f64696669636f2f416374696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Codifico/Actions/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/8b6b35cf2deaac5f2b608631a695b3e63528c420333b45a773c363e2ac7b4967/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32373533373031612d353466632d346561612d386230382d6133396132323134323430372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/2753701a-54fc-4eaa-8b08-a39a22142407)

[![Latest Stable Version](https://camo.githubusercontent.com/e075b6ce2aa53025fd61dd83928f88c1d64c7a45d535dfbd9aecd84c85836eee/68747470733a2f2f706f7365722e707567782e6f72672f636f64696669636f2f616374696f6e732f762f737461626c65)](https://packagist.org/packages/codifico/actions)[![Latest Unstable Version](https://camo.githubusercontent.com/3bb78f53022eff812617107f2e657fae8331e1f12d3ca919875decaa44332091/68747470733a2f2f706f7365722e707567782e6f72672f636f64696669636f2f616374696f6e732f762f756e737461626c65)](https://packagist.org/packages/codifico/actions)[![Total Downloads](https://camo.githubusercontent.com/fddd1c86618ee28ffa677c6b464c9c21e27e75be5f1df3c7b1ebd6fbc6a1b377/68747470733a2f2f706f7365722e707567782e6f72672f636f64696669636f2f616374696f6e732f646f776e6c6f616473)](https://packagist.org/packages/codifico/actions)[![License](https://camo.githubusercontent.com/3fa5ea81e0604248c4472d680a5aa783587c1eec3422eeb27f6f45421afe0f4e/68747470733a2f2f706f7365722e707567782e6f72672f636f64696669636f2f616374696f6e732f6c6963656e73652e737667)](https://packagist.org/packages/codifico/actions)

Instalation
-----------

[](#instalation)

```
php composer.phar require codifico/actions:dev-master
```

Usage
-----

[](#usage)

Prepare your repository to be able to work with *actions*:

```
class MyRepository implements ActionRepository
{
    //(...)
}

### Basic

If you want to use the basic version (based on Form and HttpFoundation Components), create your own classes:

```php
use Codifico\Component\Actions\Action\Basic\CreateAction;
use Codifico\Component\Actions\Action\Basic\IndexAction;
use Codifico\Component\Actions\Action\Basic\RemoveAction;
use Codifico\Component\Actions\Action\Basic\UpdateAction;

class MyEntityCreateAction extends CreateAction
{
    //(...)
}

class MyEntityIndexAction extends IndexAction
{
    //(...)
}

class MyEntityRemoveAction extends RemoveAction
{
    //(...)
}

class MyEntityUpdateAction extends UpdateAction
{
    //(...)
}
```

and at last, but not at least use then:

```
//Create:
$create = new MyEntityCreateAction($repository, $formFactory, $myEntityType);
$create->execute();

//Index:
$index = new MyEntityIndexAction($repository);
$index->setCriteria($criteria)->execute();

//Remove:
$remove = new MyEntityRemoveAction($repository);
$remove->setObject($object)->execute();

//Update:
$update = new MyEntityUpdateAction($formFactory, $myEntityType);
$update->setObject($object)->execute();
```

### Custom

[](#custom)

Otherwise, you might want to use interfaces:

- Codifico\\Component\\Actions\\Action\\CreateAction
- Codifico\\Component\\Actions\\Action\\RemoveAction
- Codifico\\Component\\Actions\\Action\\UpdateAction

or even:

- Codifico\\Component\\Actions\\Action\\Action

Copyright
---------

[](#copyright)

Copyright (c) 2015 Marcin Dryka (drymek). See LICENSE for details.

Contributors
------------

[](#contributors)

- Marcin Dryka [drymek](http://github.com/drymek) \[lead developer\]
- Other [awesome developers](https://github.com/Codifico/Actions/graphs/contributors)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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/437413b1154c91f5bb10cb5b7960a674388e420ba6e0306637c611fc77a82f9c?d=identicon)[drymek](/maintainers/drymek)

---

Top Contributors

[![drymek](https://avatars.githubusercontent.com/u/492240?v=4)](https://github.com/drymek "drymek (5 commits)")

### Embed Badge

![Health badge](/badges/codifico-actions/health.svg)

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

###  Alternatives

[mrjgreen/config

Config component based on laravel's

2411.0k1](/packages/mrjgreen-config)

PHPackages © 2026

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