Skip to content

Stickano/Phpinit

Repository files navigation

PHPinit

PHPinit is a handful of OOP models that can be easily integrated to your web-project for extended functionality. Now I will probably be beaten for calling this OOP, cause it doesn't follow the OOP standard per se. OOP often represent Objects from the real world - Or data members - whereas these models is more function/method based. Resource models if you like.

 

Examples

You can see the models in action on PHPinit.com

Below you will find a quick introduction to each individual model.

 

Table of Content

  1. Base64
  2. Client
  3. Connection
  4. Crud
  5. Crypto
  6. Curl
  7. Database Builder
  8. Dir
  9. Image
  10. Login
  11. Mailer
  12. Open Weather Map
  13. Random
  14. Sanitizer
  15. Search and Replace
  16. Sftp
  17. Singleton
  18. Time
  19. Tls
  20. Umoji
  21. Upload
  22. Validators

 

Base64

URL friendly Base64 encode/decode methods.

 

Client

Get client IP, browser language and current URL.

 

Connection

An empty connection model.

 

Crud

Create, Read, Update and Delete (database).

 

Crypto

Encrypt/decrypt strings, using AES.

 

Curl

Make Curl requests to your server. PUT/POST Json Encode/Decode requests.

 

Database Builder

Create/drop/check databases, tables and rows.

 

Dir

Scan dir (ls) and recursively remove folders and content.

 

Image

Create thumbnails with ease.

 

Login

Easy login/logout integration.

 

Mailer

Sends E-mails.

 

Open Weather Map

Get the weather details from OpenWeatherMap's API.

 

Random

Create random strings.

 

Sanitizer

Sanitize your strings. Be aware that this should not be used for sanitizing database values.

 

Search and Replace

Search and Replace functions - Encapsulate a string section inside an element i.e.

 

Sftp

Secure FTP. This requires an additional module to be installed (php-ssh2).

 

Singleton

An empty, ready to use Singleton. A Singleton will only be loaded once.

 

Time

Create timestamps. Also have a greeting method, which response according to the time of day.

 

Tls

(Re)connect with SSL/TLS (HTTPS).

 

Umoji

Unicode emojis.

 

Upload

Easy to integrate upload method.

 

Validators

Validate common data, such as String, Integer, IP and URL.

About

PHP utilities for common backend web-development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages