From ff27b559cfc3fc362cbf0f70b7adf80c715fd6c0 Mon Sep 17 00:00:00 2001 From: Paul Robert Date: Fri, 17 Mar 2023 16:28:47 +0100 Subject: [PATCH] Changed vendor to 'Safari'. --- LICENSE | 2 +- README.md | 15 +++++++-------- {Chase/Safari => Safari}/Element.php | 2 +- {Chase/Safari => Safari}/Field.php | 2 +- {Chase/Safari => Safari}/Form.php | 2 +- {Chase/Safari => Safari}/Utils.php | 2 +- Tests/FieldTest.php | 4 ++-- composer.json | 6 +++--- 8 files changed, 17 insertions(+), 18 deletions(-) rename {Chase/Safari => Safari}/Element.php (98%) rename {Chase/Safari => Safari}/Field.php (99%) rename {Chase/Safari => Safari}/Form.php (98%) rename {Chase/Safari => Safari}/Utils.php (98%) diff --git a/LICENSE b/LICENSE index f11d3a4..2fc8e38 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 PAUL ROBERT +Copyright (c) 2023 PAUL ROBERT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f088f32..2b50f38 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ # Safari ![github stars](https://img.shields.io/github/stars/phrenotype/safari?style=social) -![packagist stars](https://img.shields.io/packagist/stars/chase/safari) ![license](https://img.shields.io/github/license/phrenotype/safari) ![contributors](https://img.shields.io/github/contributors/phrenotype/safari) -![contributors](https://img.shields.io/github/languages/code-size/phrenotype/safari) -![downloads](https://img.shields.io/packagist/dm/chase/safari) +![code size](https://img.shields.io/github/languages/code-size/phrenotype/safari) + This library makes php forms easy to build and re-use, yes, re-use. @@ -13,11 +12,11 @@ Just like orm models are simply declared and used over and over again, php form Previously submitted form values are automatically filled or choosen. ## Install -`composer require chase/safari` +`composer require safari/safari` ## Usage -For each form, you need to define a class that extends `Chase\Safari\Form`, an abstract class. Ensure the parent constructor in called within your own constructor. The super global containing the form values should be passed to it. The super global is automatically encoded using `htmlentities` to prevent `xss`. +For each form, you need to define a class that extends `Safari\Form`, an abstract class. Ensure the parent constructor in called within your own constructor. The super global containing the form values should be passed to it. The super global is automatically encoded using `htmlentities` to prevent `xss`. Additionally, you can optionally assign form attributes in the constructor. However, make sure you declare them as instance attributes or you will be unable to retrieve the values later. @@ -26,7 +25,7 @@ Then, you are required to implement a method, `elements`, which returns an array ```php