Skip to content

This library is designed for PHP projects, providing reusable implementations of common tasks to streamline development across multiple applications.

License

Notifications You must be signed in to change notification settings

yjmorales/php-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Core Library

Author

About the project

This PHP library provides a robust foundation for implementing frequently used features such as email delivery, Google reCAPTCHA v3 validation, input sanitization, and API integrations. It is designed to promote code reuse, improve maintainability, and ensure consistent behavior across diverse PHP projects.

Below is a list of the modules that have been implemented to date:

Content

  1. SENDGRID

Includes two modules for managing emails with SendGrid. These modules can be easily integrated into Symfony projects by adding a new service.

First Implementation

Common\Communication\Mailer\SendGrid\Mailer:
    class: Common\Communication\Mailer\SendGrid\Mailer
        arguments:
        - '%env(SENDGRID_API_KEY)%'
        - '%personal_page_sender_email%'
        - '%personal_page_sender_name%'
  • For security reasons the sendgrid api key is held by an environmental variable env(SENDGRID_API_KEY)
  • The parameters personal_page_sender_email and personal_page_sender_name should be defined also by the application.

Second Implementation (used to send rich html as email body).

App\Core\Comunication\Email\Mailer:
    class: App\Core\Comunication\Email\Mailer
    arguments: ['@mailer', 'sender_email@sample.com', 'admin@internal.com', 'Sender Name']

2) AUTO-PHONE-FORMAT (jQuery)

Includes a JavaScript helper that formats a text field’s value into the phone number pattern (###) ###-####.


3) ANTI-SPAMMING

Supports anti-spamming by using Google ReCaptchaV3


4) Phone number utilities and Twig Extension for phone formatting.

Contains utility classes and functions for handling phone number formatting and rendering phone numbers in Twig templates.


5) Random Data Generator

Includes components for generating random data such as names, last names, cities, and more.


6) Pheanstalkd implementation

Provides an implementation for interacting with Pheanstalkd, enabling seamless integration with the Beanstalkd queue system.

Contact

Yenier Jimenez


http://yenierjimenez.net
> yjmorales86@gmail.com

About

This library is designed for PHP projects, providing reusable implementations of common tasks to streamline development across multiple applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published