You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-26Lines changed: 46 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,44 +41,64 @@ The Bugfish Framework, meticulously designed for web developers, prioritizes sec
41
41
### PHP Functions
42
42
Discover a collection of indispensable PHP functions crafted for seamless integration across various projects. Witness how these functions expedite and refine coding processes within web development. Comprehensive documentation for each function is provided below. To incorporate these functions seamlessly, include the PHP files within the designated _functions subfolder in the overarching _framework folder. This strategic approach optimizes coding efficiency and enhances web project performance.
| ✅ x_captcha.php | PHP implementation of CAPTCHA for spam prevention. | LGPL-2.1 |
48
+
| ✅ x_cookiebanner.php | PHP code to display and manage cookie consent banners. | LGPL-2.1 |
49
+
| ✅ x_curl.php | PHP wrapper or helper functions for cURL HTTP requests. | LGPL-2.1 |
50
+
| ✅ x_eventbox.php | PHP component for displaying or managing event boxes/messages. | LGPL-2.1 |
51
+
| ✅ x_library.php | Collection of utility functions for general use in PHP. | LGPL-2.1 |
52
+
| ✅ x_rss.php | PHP script to generate or parse RSS feeds. | LGPL-2.1 |
53
+
| ✅ x_search.php | PHP functions for search implementation and indexing. | LGPL-2.1 |
54
+
| ✅ x_table.php | PHP helper for generating or manipulating HTML tables. | LGPL-2.1 |
55
+
44
56
### PHP Classes
45
57
These classes, located in /_framework/classes/x_*, are crucial for their functionality, efficiency, and thorough testing across various websites. They enhance development and save time. Note: Some classes require a database connection. They will install necessary tables automatically if configured correctly. Not all classes require MySQL; refer to the documentation for specific requirements. If MySQL is needed, provide a valid x_class_mysql object to the class.
46
58
47
59
| Name | Description | License |
48
60
|------|-------------|---------|
49
-
| ✅x_class_2fa | The TwoFactorAuthenticator class in PHP generates and verifies Time-Based One-Time Password (TOTP) codes for two-factor authentication (2FA). It offers methods for generating random secret keys, creating 2FA codes, and validating them, enhancing security in PHP applications. |GPLv3|
50
-
| ✅x_class_api | Facilitates the creation of simple and secure API requests. This class needs PHP Module CURL to work properly. It supports token-authentication on API Requests and more. |GPLv3|
51
-
| ✅x_class_benchmark | The x_class_benchmark file lets you benchmark the consumption of resources for sites on your website. PHP Values which refer to benchmarking related values will be saved in a database per URL and overwritten if the URL is refreshed to monitor consumption even after changes! |GPLv3|
52
-
| ✅x_class_block | Facilitates session-based user counting and block operations. This makes it easy for you to block users out of various areas, in case they are making bad decisions and raising their counter! |GPLv3|
53
-
| ✅x_class_comment | Enables commenting functionality, suitable for guestbooks or website comment sections. Could also act as a simple Chat or Logging Tool! |GPLv3|
54
-
| ✅x_class_csrf | Provides robust CSRF protection for web forms, supporting external actions. You have a set of functions to control everything what is going on with CSRF Keys. This class will spare you a lot of time and serve you well to get some basic security into your website! |GPLv3|
55
-
| ✅x_class_curl | Efficiently handles Curl requests and logs them for web operations. This class makes it easier to build PHP Curl Requests. PHP Module CURL is needed to run this class. |GPLv3|
56
-
| ✅x_class_crypt | Provides file and string encryption capabilities. You can decrypt and encrypt strings/files. It uses a simple encryption method to make your files secure. |GPLv3|
57
-
| ✅x_class_debug | Aids in debugging and offers development notifications and functions. You can check if PHP Modules are enabled or get some Benchmarks out of your website. |GPLv3|
58
-
| ✅x_class_eventbox | The x_class_eventbox PHP class simplifies the display of user notifications and messages on a web page. |GPLv3|
59
-
| ✅x_class_hitcounter | Counts website visitors per page URL. You have different configuration functions to handle how this counting operation should act in various cases. |GPLv3|
60
-
| ✅x_class_ipbl | Implements IP blacklisting. This class allows you to raise counters for IPs and block certain areas if an IP is acting suspicious! This can make a main difference in website security and even prevent brute-force attacks to any of your logins if implemented the right way. |GPLv3|
61
-
| ✅x_class_log | Provides a class for logging operations. Easy and smart you can make log entries for almost every possibility. |GPLv3|
62
-
| ✅x_class_lang | Manages language translation for multi-language websites. You can easily add translation keys and manage them with a variation of functions and parameters! |GPLv3|
63
-
| ✅x_class_mail | Handles mail sending operations, with a subclass for sending operation items. This class depends on x_class_phpmailer. |GPLv3|
64
-
| ✅x_class_mail_template | Creates mail templates with substitutions and footer/header options, compatible with x_class_mail. This class makes it easier to quick prepare E-Mail Templates to build E-Mails - to send out to customers or others! |GPLv3|
65
-
| ✅x_class_mysql | Provides MySQL database handling capabilities, along with additional features. This is another flagship of this framework. Most classes here need an x_class_mysql object to run properly. This class serves a lot in security and Error-Readability. It can make work much easier and has a Database logging system to store errors in Statements which may occur and much, much more! |GPLv3|
66
-
| ✅x_class_phpmailer | Manages email sending operations within the framework. This class is not made by me "Bugfish". It's the PHPMailer Class you can find on: [Github](https://github.com/PHPMailer/PHPMailer)| LGPL-2.1 |
67
-
| ✅x_class_perm | Controls permissions for users, including single-item permission objects. You can control permissions with this and it is storage-saving. 1-n Relation. If you are in search of a permission system and you won't build one on your own, then you have found what you have searched for! |GPLv3|
68
-
| ✅x_class_referer | Logs visitor referrers. You have some configuration functions to control how referrers will be saved into the database. |GPLv3|
69
-
| ✅x_class_redis | Offers control over Redis functionality. With this class, you can cache content on a Redis server, which will make your website faster. This may come in handy if your website is serving mass on dynamically generated content, which does not change so fast. PHP Module REDIS is needed to run this class. |GPLv3|
70
-
| ✅x_class_table | The x_class_table PHP class simplifies the creation of dynamic HTML tables with quick PHP editing capabilities. |GPLv3|
71
-
| ✅x_class_user | Creates various types of user logins, with full functionality for password recovery, mail editing with token operations, and more. This is a flagship of this framework. It can serve you a complete working login/authentication and token system right away! |GPLv3|
72
-
| ✅x_class_var | Controls setup variables for use on websites and includes a function to create forms for changing these values. You can control and set up constants on a page or in code. If you search for a constant management class, this is your way to go! |GPLv3|
73
-
| ✅x_class_zip | Enables file compression and decompression, compatible with x_class_crypt for direct encryption and decryption. PHP Module ZIP is required to run this class. |GPLv3|
74
-
| ✅x_class_version | Fetch version information and information about the author at the currently deployed framework instance. |GPLv3|
61
+
| ✅x_class_2fa | The TwoFactorAuthenticator class in PHP generates and verifies Time-Based One-Time Password (TOTP) codes for two-factor authentication (2FA). It offers methods for generating random secret keys, creating 2FA codes, and validating them, enhancing security in PHP applications. |LGPL-2.1|
62
+
| ✅x_class_api | Facilitates the creation of simple and secure API requests. This class needs PHP Module CURL to work properly. It supports token-authentication on API Requests and more. |LGPL-2.1|
63
+
| ✅x_class_benchmark | The x_class_benchmark file lets you benchmark the consumption of resources for sites on your website. PHP Values which refer to benchmarking related values will be saved in a database per URL and overwritten if the URL is refreshed to monitor consumption even after changes! |LGPL-2.1|
64
+
| ✅x_class_block | Facilitates session-based user counting and block operations. This makes it easy for you to block users out of various areas, in case they are making bad decisions and raising their counter! |LGPL-2.1|
65
+
| ✅x_class_comment | Enables commenting functionality, suitable for guestbooks or website comment sections. Could also act as a simple Chat or Logging Tool! |LGPL-2.1|
66
+
| ✅x_class_csrf | Provides robust CSRF protection for web forms, supporting external actions. You have a set of functions to control everything what is going on with CSRF Keys. This class will spare you a lot of time and serve you well to get some basic security into your website! |LGPL-2.1|
67
+
| ✅x_class_curl | Efficiently handles Curl requests and logs them for web operations. This class makes it easier to build PHP Curl Requests. PHP Module CURL is needed to run this class. |LGPL-2.1|
68
+
| ✅x_class_crypt | Provides file and string encryption capabilities. You can decrypt and encrypt strings/files. It uses a simple encryption method to make your files secure. |LGPL-2.1|
69
+
| ✅x_class_debug | Aids in debugging and offers development notifications and functions. You can check if PHP Modules are enabled or get some Benchmarks out of your website. |LGPL-2.1|
70
+
| ✅x_class_eventbox | The x_class_eventbox PHP class simplifies the display of user notifications and messages on a web page. |LGPL-2.1|
71
+
| ✅x_class_hitcounter | Counts website visitors per page URL. You have different configuration functions to handle how this counting operation should act in various cases. |LGPL-2.1|
72
+
| ✅x_class_ipbl | Implements IP blacklisting. This class allows you to raise counters for IPs and block certain areas if an IP is acting suspicious! This can make a main difference in website security and even prevent brute-force attacks to any of your logins if implemented the right way. |LGPL-2.1|
73
+
| ✅x_class_log | Provides a class for logging operations. Easy and smart you can make log entries for almost every possibility. |LGPL-2.1|
74
+
| ✅x_class_lang | Manages language translation for multi-language websites. You can easily add translation keys and manage them with a variation of functions and parameters! |LGPL-2.1|
75
+
| ✅x_class_mail | Handles mail sending operations, with a subclass for sending operation items. This class depends on x_class_phpmailer. |LGPL-2.1|
76
+
| ✅x_class_mail_template | Creates mail templates with substitutions and footer/header options, compatible with x_class_mail. This class makes it easier to quick prepare E-Mail Templates to build E-Mails - to send out to customers or others! |LGPL-2.1|
77
+
| ✅x_class_mysql | Provides MySQL database handling capabilities, along with additional features. This is another flagship of this framework. Most classes here need an x_class_mysql object to run properly. This class serves a lot in security and Error-Readability. It can make work much easier and has a Database logging system to store errors in Statements which may occur and much, much more! |LGPL-2.1|
78
+
| ✅x_class_phpmailer | Manages email sending operations within the framework. This class is not made by me "Bugfish". It's the PHPMailer Class you can find on: [Github](https://github.com/PHPMailer/PHPMailer)| LGPL-2.1 |
79
+
| ✅x_class_perm | Controls permissions for users, including single-item permission objects. You can control permissions with this and it is storage-saving. 1-n Relation. If you are in search of a permission system and you won't build one on your own, then you have found what you have searched for! |LGPL-2.1|
80
+
| ✅x_class_referer | Logs visitor referrers. You have some configuration functions to control how referrers will be saved into the database. |LGPL-2.1|
81
+
| ✅x_class_redis | Offers control over Redis functionality. With this class, you can cache content on a Redis server, which will make your website faster. This may come in handy if your website is serving mass on dynamically generated content, which does not change so fast. PHP Module REDIS is needed to run this class. |LGPL-2.1|
82
+
| ✅x_class_table | The x_class_table PHP class simplifies the creation of dynamic HTML tables with quick PHP editing capabilities. |LGPL-2.1|
83
+
| ✅x_class_user | Creates various types of user logins, with full functionality for password recovery, mail editing with token operations, and more. This is a flagship of this framework. It can serve you a complete working login/authentication and token system right away! |LGPL-2.1|
84
+
| ✅x_class_var | Controls setup variables for use on websites and includes a function to create forms for changing these values. You can control and set up constants on a page or in code. If you search for a constant management class, this is your way to go! |LGPL-2.1|
85
+
| ✅x_class_zip | Enables file compression and decompression, compatible with x_class_crypt for direct encryption and decryption. PHP Module ZIP is required to run this class. |LGPL-2.1|
86
+
| ✅x_class_version | Fetch version information and information about the author at the currently deployed framework instance. |LGPL-2.1|
75
87
76
88
### CSS Classes
77
89
Introducing the "Bugfish CSS Framework" – a solution for efficient web design. Simplify your development process with a comprehensive collection of pre-built classes, designed to expedite the creation of responsive web layouts. The Bugfish CSS Framework streamlines your design experience, making it faster and more professional. To use it, include the CSS files located in the css folder.
78
90
91
+
| Name | Description | License |
92
+
|------|-------------|---------|
93
+
| ✅ xcss_xfpe.css | CSS framework with predefined classes for quick, simple styling. | LGPL-2.1 |
94
+
79
95
### Javascript Functions
80
96
Access a comprehensive array of JavaScript functions designed for integration across diverse projects, enhancing coding speed and efficiency in web development. Detailed documentation for each function is provided below. To incorporate these functions, include the JavaScript file in the _javascript subfolder within the central _framework folder. This implementation optimizes your coding process and elevates your web project's performance. Simplify your coding with our library of pre-built functions and modules, crafted to expedite the creation of dynamic, interactive web applications. Find the JavaScript Function file in: /_framework/javascript/*.js!
<b>Release 3.39</b><br/> - Fixes on x_class_var: Fixed double unclear parameter on simple form function<br/> - Fixes on x_class_var: Optimizations for class<br/> - Fixes on x_class_api: Additions to add notes<br/> - License changed to LGPL2.1
0 commit comments