Yii Hydrator 1.5
Version 1.5 of Yii Hydrator package has been released. Here are the list of improvements included in the new version:
- added
EnumTypeCasterthat cast values to enumerations; - fixed populating readonly properties from parent classes.
Version 1.5 of Yii Hydrator package has been released. Here are the list of improvements included in the new version:
EnumTypeCaster that cast values to enumerations;Version 2.1 of Yii Validator package has been released. Here is the list of changes included in the new version:
getRules() method;Yiisoft\NetworkUtilities\IpRanges in Ip rule: add getIpRanges() method and deprecate getRanges(), getNetworks(), isAllowed() methods;NEGATION_CHARACTER constant from network-utilities package in IpHandler instead of declaring its own constant.Version 2.1 of Yii Swagger package has been released. Here is the list of changes included in the new version:
psr/http-message of versions ^2.0.yiisoft/yii-view version to ^7.1.\Yiisoft\Swagger\Action\SwaggerJson and \Yiisoft\Swagger\Action\SwaggerUi actions, mark \Yiisoft\Swagger\Middleware\SwaggerJson and \Yiisoft\Swagger\Middleware\SwaggerUi clases as deprecated (they will be removed in the next major version).swagger-api/swagger-ui of version 5.Version 1.2 of Yii Network Utilities package has been released. Here is the list of changes included in the new version:
IP_PATTERN and IP_REGEXP constants to IpHelper for checking IP of both IPv4 and IPv6 versions.NEGATION_CHARACTER constant to IpRanges used to negate ranges.isIpv4(), isIpv6(), isIp() methods to IpHelper.First release of Yii Form Model package was done. It provides a base for form models and helps to fill, validate and display them.
For usage define a form model:
use Yiisoft\FormModel\Attribute\Safe;
use Yiisoft\FormModel\FormModel;
use Yiisoft\Validator\Rule\Email;
use Yiisoft\Validator\Rule\Length;
use Yiisoft\Validator\Rule\Required;
First release of Yii Form package was done. It provides a set of widgets to help with dynamic server-side generation of HTML forms. The following widgets are available out of the box:
Checkbox, CheckboxList, Date, DateTimeLocal, Email, File, Hidden, Image, Number, Password, RadioList, Range, Select, Telephone, Text, Textarea, Time, Url;Button, ResetButton, SubmitButton;ButtonGroup, Fieldset.ErrorSummary.General usage:
use Yiisoft\Form\PureField\Field;
echo Field::text('firstName', theme: 'horizontal')
->label('First Name')
->autofocus();
echo Field::text('lastName', theme: 'horizontal')
->label('Last Name');
echo Field::select('sex')
->label('Sex')
->optionsData(['m' => 'Male', 'f' => 'Female'])
->prompt('—');
echo Field::number('age')
->label('Age')
->hint('Please enter your age.');
echo Field::submitButton('Submit')
->buttonClass('primary');
Version 1.4 of Yii Hydrator package has been released. Here are the list of improvements included in the new version:
ToArrayOfStrings parameter attribute;Collection.Version 3.6 of Yii HTML package is released. There are some improvements and fixes:
InvalidArgumentException in Html::renderAttribute() when attribute name is empty or contains
forbidden symbols.Stringable and array values support to textarea tag.CheckboxList and RadioList widgets.null value attributes in Html::renderTagAttributes().Version 2.1 of Yii Auth JWT package has been released. Here are the list of changes included in the new version:
web-token/* packages in dependencies with one - web-token/jwt-library, updated min version of PHP to 8.1.psr/http-message for versions ^2.0.Version 1.3 of Yii Hydrator package has been released. Here are the list of improvements included in the new version:
Collection PHP attribute;withHydrator() method to ParameterAttributesHandler.getHydrator() method to ParameterAttributeResolveContext.readonly properties.Version 1.1 of Yii Network Utilities package is released. There are some improvements:
IpRanges that represents a set of IP ranges that are either allowed or forbidden;Major version of Yii Validator were tagged.
Each::PARAMETER_EACH_KEY validation context parameter that available during Each rule handling and containing the current keyInEnum ruleWe are pleased to announce the release of Yii Framework version 2.0.51.
Please refer to the instructions at https://www.yiiframework.com/download/ to install or upgrade to this version.
This release fixes regressions in 2.0.50, compatibility of error handler with PHP 8.3 and a number of bugs.
Major version of Yii HTTP Runner were tagged. In this version made several changes.
NullLogger by default.ServerRequestFactory.SapiEmitter as internal.Yii Error Handler package was updated with the following enhancements:
@anonymous postfix;Version 3.5 of Yii HTML package is released. There are some improvements:
hr and method Html::hr();aria-describedby attribute.Yii Logging Library package was updated with the following enhancements and new features:
Logger::assertLevelIsValid(), Logger::assertLevelIsString() and Logger::assertLevelIsSupported();{foo.bar};DateTime and DateTimeImmutable support as time in log context;Minor version of Yii Mailer Library was tagged. There are some improvements and fixes:
MessageFactory;^8.1;yiisoft/view version to ^10.0.Minor version of Yii View Renderer were tagged.
yiisoft/view version to ^10.0.Version 10.0 of Yii View package was released.
Changed logic of template file searching in ViewInterface::render():
// to join the base path, e.g. "//site/index";./ to join the directory containing the view currently being rendered
(i.e., this happens when rendering a view within another view), e.g. "./widget";// or ./ (e.g. "site/index"), so view file will be
looked for under the view path of the context set via withContext() (if the context instance was not set
withContext(), it will be looked for under the base path).Removed ViewInterface::renderFile().
Changed exception from RuntimeException to LogicException when the view cannot be resolved in ViewInterface::render().