Archive:Pop PHP Framework: Difference between revisions
No edit summary |
No edit summary |
||
| Line 184: | Line 184: | ||
While the initial development of the Pop PHP Framework was focused on building web applications, since version 3, Pop PHP fully supports console-based applications to be used on the [[Command-line interface|CLI]] as well. Pop PHP incorporates current standards, trends and patterns in software development in an attempt to build an ecosystem that is familiar to developers. The framework is heavily unit-tested using [[PHPUnit]], uses [[PHPStan]] for static analysis and runs through the GitHub Actions workflow platform to ensure the builds of the individual framework components are passing.<ref>{{cite web |url=https://github.com/features/actions |title=GitHub Actions|website=github.com/features/actions}}</ref> | While the initial development of the Pop PHP Framework was focused on building web applications, since version 3, Pop PHP fully supports console-based applications to be used on the [[Command-line interface|CLI]] as well. Pop PHP incorporates current standards, trends and patterns in software development in an attempt to build an ecosystem that is familiar to developers. The framework is heavily unit-tested using [[PHPUnit]], uses [[PHPStan]] for static analysis and runs through the GitHub Actions workflow platform to ensure the builds of the individual framework components are passing.<ref>{{cite web |url=https://github.com/features/actions |title=GitHub Actions|website=github.com/features/actions}}</ref> | ||
Pop PHP | Pop PHP 7.0.0 is currently written for and supports PHP 8.4+. | ||
The Pop PHP Framework project welcomes community involvement and contribution via the current available channels.<ref>{{cite web |url=https://www.popphp.org/ | The Pop PHP Framework project welcomes community involvement and contribution via the current available channels.<ref>{{cite web |url=https://www.popphp.org/communityt |title=Pop PHP Development|website=popphp.org}}</ref> | ||
== Features == | == Features == | ||
| Line 193: | Line 193: | ||
* '''The Application Object''' | * '''The Application Object''' | ||
* '''The Router''' | * '''The Router''' (HTTP and CLI route matching) | ||
* '''The Service Locator''' | * '''The Service Locator''' ([[PHP Standard Recommendation|PSR]]-11 container) | ||
* '''The Event Manager''' | * '''The Event Manager''' (PSR-14 event dispatcher) | ||
* '''The Middleware Manager''' | * '''The Middleware Manager''' (PSR-15 middleware and request handlers) | ||
* '''The Module Manager''' | * '''The Module Manager''' | ||
* '''The | * '''The Dispatchable Core''' (controllers, HTTP and console dispatch, maintenance mode) | ||
Additionally, there are a number of other components that are available for use in building an application.<ref>{{cite web |url=https://github.com/popphp/popphp-framework/blob/master/README.md#overview |title=Pop PHP Components|website=github.com}}</ref> Some of the commonly used components and what they include are: | Additionally, there are a number of other components that are available for use in building an application.<ref>{{cite web |url=https://github.com/popphp/popphp-framework/blob/master/README.md#overview |title=Pop PHP Components|website=github.com}}</ref> Some of the commonly used components and what they include are: | ||
* '''Database Abstraction''' (popphp/pop-db) | * '''Database Abstraction''' (popphp/pop-db) | ||
** Database adapters | ** Database adapters (MySQL, PostgreSQL, SQLite, SQL Server and PDO) | ||
** Active record | ** Active record, including encoded and authentication-aware records | ||
** Query builder | ** Table relationships and eager loading | ||
** | ** Query builder and schema builder | ||
** Migrations and seeding | |||
** Transactions and a query profiler | |||
* '''HTTP Abstraction''' (popphp/pop-http) | * '''HTTP Abstraction''' (popphp/pop-http) | ||
** HTTP client & server classes | ** HTTP client & server classes | ||
** PSR-7 messages, PSR-17 factories and a PSR-18 client | |||
** Client handlers (cURL, cURL multi and stream) and client middleware | |||
** Promises | ** Promises | ||
** Headers & Auth | ** Headers & Auth | ||
** Request & response handlers | ** Request & response handlers | ||
** File uploads | ** File uploads | ||
* '''Command Line Interface''' (popphp/pop-console, popphp/pop-kettle) | |||
** Command routing, prompts, tables, progress bars and colored output | |||
** The <code>kettle</code> console application for scaffolding, migrations, a | |||
* '''HTML Form Generation''' (popphp/pop-form) | * '''HTML Form Generation''' (popphp/pop-form) | ||
** Simple form configuration & rendering | ** Simple form configuration & rendering | ||
| Line 220: | Line 227: | ||
* '''Job Queue''' (popphp/pop-queue) | * '''Job Queue''' (popphp/pop-queue) | ||
** Job queue management & scheduler | ** Job queue management & scheduler | ||
** Queue adapters (database, Redis, Amazon SQS, file and memory) | |||
* '''Mail''' (popphp/pop-mail) | * '''Mail''' (popphp/pop-mail) | ||
** Support for popular mail APIs | ** Support for popular mail APIs (Google, Microsoft 365, Mailgun, SendGrid an | ||
** SMTP support | ** SMTP support | ||
** Mail queues | ** Mail queues | ||
** IMAP/POP client | ** IMAP/POP client | ||
* '''Storage''' (popphp/pop-storage) | * '''Storage''' (popphp/pop-storage) | ||
** Support for popular cloud-based storage APIs | ** Support for popular cloud-based storage APIs (Amazon S3 and Azure) as well as local storage | ||
* '''Cryptography''' (popphp/pop-crypt) | |||
** Password hashing (bcrypt and Argon2) | |||
** Encryption and signature verification | |||
* '''Authentication & Access Control''' (popphp/pop-auth, popphp/pop-acl) | |||
** File- and JWT-based authentication | |||
** Role- and resource-based access control with assertions and policies | |||
* '''Auditing''' (popphp/pop-audit) | * '''Auditing''' (popphp/pop-audit) | ||
* '''Caching''' (popphp/pop-cache) | * '''Caching''' (popphp/pop-cache) — PSR-6 and PSR-16 compatible | ||
* '''Debugging''' (popphp/pop-debug) | * '''Debugging''' (popphp/pop-debug) | ||
* '''Logging''' (popphp/pop-log) | * '''Logging''' (popphp/pop-log) — PSR-3 compatible | ||
* '''Image Manipulation''' (popphp/pop-image) | * '''Image Manipulation''' (popphp/pop-image) | ||
* '''Views''' (popphp/pop-view) | * '''Views''' (popphp/pop-view) | ||
* '''Sessions''' (popphp/pop-session) | * '''Sessions''' (popphp/pop-session) | ||
* '''Cookies''' (popphp/pop-cookie) | * '''Cookies''' (popphp/pop-cookie) | ||
* '''Utilities''' (popphp/pop-utils) — collections, string, array and number | |||
=== Kettle === | === Kettle === | ||
Kettle is a CLI-based | Kettle is a CLI-based companion script available since version 4.0.1. It allows the user to quickly scaffold application files and folders together as well as manage databases, migrations, queues and more.<ref>{{cite web |url=https://github.com/popphp/pop-kettle|title=Kettle on GitHub|website=github.com}}</ref> | ||
== References == | == References == | ||