https://github.com/mary-shelley/frankie
A frankenstein framework - middleware and annotation based
https://github.com/mary-shelley/frankie
annotation aop framework php symfony
Last synced: 6 months ago
JSON representation
A frankenstein framework - middleware and annotation based
- Host: GitHub
- URL: https://github.com/mary-shelley/frankie
- Owner: mary-shelley
- Created: 2015-02-05T21:37:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T19:54:59.000Z (about 9 years ago)
- Last Synced: 2025-11-27T16:45:06.557Z (8 months ago)
- Topics: annotation, aop, framework, php, symfony
- Language: PHP
- Homepage: https://mary-shelley.github.io/docs/
- Size: 113 KB
- Stars: 20
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frankie - A frankenstein micro-framework for PHP
[](https://travis-ci.org/mary-shelley/frankie)
## Features
Frankie is a micro-framework focused on annotation. The goal is to use
annotation in order to do almost everything in the framework.
* Annotated Routes (Routing)
* Annotated Injections (Dependencies)
* Annotated Request Flow (Application Flow)
Mainly Frankie is a framework for create RESTful applications and microservices.
Discover more on the [documentation](https://mary-shelley.github.io/docs/)
## Hands-on!
The goal is focus on actions and attach before and action events using
annotations
```php
eventManager->trigger("mark-it", $element);
// ...
}
}
```
### Testing with SpecBDD - PHPSpec
```php
setEventManager($em);
}
function it_is_initializable()
{
$this->shouldHaveType('MyController');
}
function it_should_trigger_the_mark_event(
Request $request, Response $response, EventManager $em
)
{
$em->trigger("mark-it", Argument::Any())->shouldBeCalledTimes(1);
$this->get($request, $response);
}
}
```