From 1ddaae6e3b97810c38c653cd1a11420429636283 Mon Sep 17 00:00:00 2001 From: Chauncey McAskill Date: Tue, 11 Feb 2020 10:29:31 -0500 Subject: [PATCH] Clean up repository --- LICENSE | 2 +- README.md | 55 +++++++++++++++++++++++------------------------- phpunit.xml.dist | 1 - 3 files changed, 27 insertions(+), 31 deletions(-) diff --git a/LICENSE b/LICENSE index dfff16e8..5cd15149 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 Locomotive Inc. +Copyright (c) Locomotive Inc. 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 e905e8aa..1f10e3d9 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,7 @@ $ composer require locomotivemtl/charcoal-ui ## Dependencies -- `PHP 5.5+` - - Older versions of PHP are deprecated, therefore not supported. +- PHP 7.1+ - [`psr/log`](http://www.php-fig.org/psr/psr-3/) - A PSR-3 compliant logger should be provided to the various services / classes. - [`locomotivemtl/charcoal-config`](https://github.com/locomotivemtl/charcoal-config) 0.6+ @@ -48,59 +47,57 @@ $ composer require locomotivemtl/charcoal-ui ## Form ```php - -use \Charcoal\Config\GenericMetadata; - -use \Charcoal\Ui\Form\FormBuilder; -use \Charcoal\Ui\Form\FormFactory; +use Charcoal\Config\GenericMetadata; +use Charcoal\Ui\Form\FormBuilder; +use Charcoal\Ui\Form\FormFactory; $metadata = new GenericMetadata([ 'properties' => [ 'first_name' => [ - 'type' => 'string' + 'type' => 'string', ], 'last_name' => [ - 'type' => 'string' + 'type' => 'string', ], 'email' => [ - 'type' => 'email' - ] - ] + 'type' => 'email', + ], + ], ]); $formData = [ 'first_name' => 'Mathieu', - 'last_name' => 'Ducharme', - 'email' => 'mat@locomotive.ca' + 'last_name' => 'Ducharme', + 'email' => 'mat@locomotive.ca', ]; $formConfig = [ - 'type' => 'charcoal/ui/form/generic' - 'template_ident' => 'foo/bar/form', - 'template_data' => [], - 'label' => 'Example Form', - 'groups' => [ + 'type' => 'charcoal/ui/form/generic' + 'template_ident' => 'foo/bar/form', + 'template_data' => [], + 'label' => 'Example Form', + 'groups' => [ 'info' => [ - 'layout' =>[ + 'layout' => [ 'structure' => [ 'columns' => [ - [1,1], - [1] - ] - ] + [ 1, 1 ], + [ 1 ], + ], + ], ], 'properties' => [ 'first_name', 'last_name', - 'email' - ] - ] - ] + 'email', + ], + ], + ], ]; $formBuilder = new FormBuilder([ 'form_factory' => new FormFactory(), - 'view' => $container['view'] + 'view' => $container['view'], ]); $form = $formBuilder->build($formConfig); diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ec50ddcb..34250cbc 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,7 +9,6 @@ processIsolation="false" stopOnFailure="false" verbose="true"> -> ./tests/Charcoal