infuse / bootstrap
Modular framework for building modern applications
Installs: 2 742
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 2
Requires
- php: >=7.0.0
- infuse/libs: ~1.0
- monolog/monolog: 1.*
- pimple/pimple: ~3.0
- symfony/console: ~2.8|~3.0|~4.0
- symfony/http-kernel: ~2.8|~3.0|~4.0
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/php-code-coverage: 5.*
- phpunit/phpunit: 6.0.*
- satooshi/php-coveralls: 1.0.0
- smarty/smarty: ~3.1
- symfony/polyfill-php70: ^1.10
Suggests
- ext-memcache: *
- ext-redis: *
README
Modular framework for building modern applications in PHP
Introduction
Infuse is a framework to help you build awesome web applications at scale (in terms of LoC and traffic). Minimalism is the primary design goal of this project that is acheived through strong use of modularity. The core framework is a simple set of patterns for gluing together PHP applications.
A minimal amount of components are included with Infuse. Just enough to bootstrap your application, provide routing, requests/responses, dependency injection, and an extensible console application. Any other components completely depends on the needs of your application and can be added through modules available on Packagist. Need an ORM? Then add Pulsar or Doctrine. What about processing scheduled tasks? There's a module for that. If a module that you need is not available then it's easy to write your own.
You will find a minimum amount of opinion in this framework. It's targeted at seasoned PHPers who have their own opinions on what components they want to build their application with. Infuse tries to stay as lightweight as possible while being extendable.
Features
- Modular design
- Adheres to PHP-FIG PSRs when possible
- Dependency Injection with Pimple
- Flexible routing via nikic/fast-route
- Logging via monolog
- Console application based on Symfony/Console
Requirements
- PHP 7+
Installation
Install the package with composer:
composer require infuse/infuse
Available Modules
Databases
- Pulsar ORM: Standalone active record implementation
- JAQB: Fluent database query builder that runs on top of PDO
- infuse/migrations: Database migrations powered by Phinx
- infuse/rest-api: Quickly scaffold a RESTful API for Pulsar models
- infuse/stash: Add caching to Pulsar models using Stash
Authentication
- infuse/auth: User authentication and management
- infuse/oauth2: Adds support for OAuth2 and JWT access tokens
- infuse/facebook: Adds Facebook as an authentication method
- infuse/twitter: Adds Twitter as an authentication method
- infuse/instagram: Adds Instagram as an authentication method
Payments
- infuse/billing: Implementation of a subscription membership system powered by Stripe
Services
- infuse/cron: Process scheduled tasks in the background for your app
- infuse/email: Provides a mailer to queue and sending email templates using Swiftmailer
- infuse/iron-mq: Adds Iron.io push queues to the Infuse queue system
Administration
- infuse/admin: Generates an admin panel for managing your application and Pulsar models
- infuse/statistics: Statistics addon to the admin dashboard
Contributing
Please feel free to contribute by participating in the issues or by submitting a pull request. :-)
Tests
Use phpunit to run the included tests:
phpunit
License
The MIT License (MIT)
Copyright © 2015 Jared King
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.