Lion
Pre-releaseYii2-SimpleChat 2.0.0 Beta is released
I am very pleased to announce the the Beta release of yii2-simplechat version 2. You may follow the instructions on Github to install or upgrade to this version.
Major Changes since 2.0 Alpha
Below i am summarizing the most important new features and changes.
Structure
Model class has been broken in two classes Conversation
class and Message
class.
Now, formatters have been removed from controller to models Conversation
and Message
by using fields method.
Performance
The most notable change is that conversation query eager loads last message. This allows the count query to not use the unnecessary join with last message.
Demo (Testing)
I also added more flexibility when generating and loading test data to the database thanks to Fixtures and yii2-faker extension. You can now specify how many fixtures per user and message you need to generate and in what language.
php yii simplechat/start --users=50 --messages=10000 --language="ru_RU"
Thank you!
Thank you all for making this release possible.