bibek8366 / my-php-app
A powerful and flexible library for building PHP based web applications.
dev-main
2024-03-16 22:16 UTC
Requires
- cloudinary/cloudinary_php: ^2.12
- phpmailer/phpmailer: ^6.9
- stripe/stripe-php: ^13.13
This package is auto-updated.
Last update: 2024-04-16 22:37:02 UTC
README
A powerful and flexible PHP library for building web applications.
Features
-
App Routing Essentials
- Routing Management: Seamless navigation of routes.
- Middleware Integration: Enhanced functionality with easy middleware incorporation.
- Static Files routing: Efficient delivery of static files from your specified directory.
- Custom Error Handling: Flexible error management, integrate your custom error handling in the app.
- Routing Management: Seamless navigation of routes.
-
Error Utils
- Option to use built in Custom Error and Error handling.
-
File Utils
- files Uploads to and deletes from the specified directory.
- Provides integration with Cloudinary upload and delete services.
-
Db Utils
- Create a PDO connection to the database.
- Execute SQL queries with optional parameters.
- Calculate the OFFSET value for pagination.
-
Mail Utils
- Creates a mailer instance with the provided configurations.
- Allows composing and sending emails using PHPMailer.
-
Validation Utils
- Create a new customizable schema for defining validation rules.
- Validate data against a given schema.
- Middleware function for validating request data against a schema.
-
Payment Utils
- Stripe initialization and checkout process initiation.
- Handle stripe payment response and webhook events from Stripe.
-
Coming Soon
- Additional methods for handling other payment methods such as eSewa, Khalti, etc.
- Db connection pooling using Hyperf.
Installation
SOON...
USAGE
SOON...
Contributing
SOON...
CONTACT
Bibek Dhakal (Aswin) dhakalaswin8366@gmail.com
License
SOON....