samdark blog ☕️ (Alexander Makarov)
1.63K subscribers
137 photos
2 videos
210 links
Notes taken by Alexander Makarov, lead of Yii framework, CTO of Twindo.ai and a long term IT engineering manager.

- Official Yii updates: www.yiiframework.com
- Consulting: asapirl.com
Download Telegram
Merry Christmas! 🎄
🎄6016🥴10🎉6👎1💩1
🎙Updated my talks list for 2025 and 2024

I'm maintaining a list of talks and other materials I'm doing. In mid 2024 I stopped updating it because I was too busy (or lazy?).

Did it now. Seems I've totally forgot I gave some of these and restored the facts from my pile of notes 😂

https://slides.rmcreative.ru/

#talks #slides #php #yii #video
🔥11👍106
🔩 PHP Psalm types support in IDEs

Maksim Spirkov who joined Yii team recently, raised a question whether it is a good idea to use Psalm/PhpStan types without specific prefixes right in @property or @var in Yii.

I've tested for the most basic and useful things:

1. Generics.
2. Array shapes.
3. Whether it works without prefix.

And searched about support in general.

<?php  
class Post
{
public function getName(): string
{
return 'test';
}
}

/**
* @template Type
*/
class Container
{
/**
* @param Type $value
*/
public function __construct(private $value)
{
}

/**
* @return Type
*/
public function getValue()
{
return $this->value;
}
}

/** @var array<Post> $postArray */
foreach ($postArray as $post) {
$post->
}

$container = new Container(new Post());
$container->getValue()->

/**
* @var array{name: string, age: int} $shapedArray
*/
$shapedArray = [];
$shapedArray['


Findings:

1. PhpStorm has a very good support for many annotations.
2. Visual Studio Code and its numerous forks, Zed, Sublime Text, Vim and its variations — they all use language servers for PHP typing and auto-complete and language servers, such as Intelephense, Phpactor, Psalm language server etc., have decent support.
3. Eclipse PDT, NetBeans do not support any advanced types at all.

Overall, worth using advanced types directly except for users of Eclipse PDT or NetBeans.

#php #ide #types #psalm #phpstan
8👍7🔥2😱1
👍13👨‍💻2
Happy new year! С наступающим! 🎉🎄
🎄39
Forwarded from Yii3 Chronicles
#news

🚀 Yii3 is now available!

Yii3 landing page
Official announce
Documentation
• Application templates: Web, API, Console
• Demo applications: Blog (Layered DDD), Diary (Vertical slices, Active Record)

Thank you for your support and patience! We did it together. All the core team members, community contributors, and backers
🤝

We're pretty sure the Yii3 codebase will serve us well in at least the next 10 years or even more.

Merry Christmas and Happy New Year! Enjoy! 🎉
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥99🎄27🎉19👍16👏54🤝3😁2💯1
🎄2025 #1

The year overall was good with slight achievements and fun together with my wife and kids ❤️

😊 Personal life

- Did a gym for a year almost without skipping. Highly recommended 💪
- Played on stage with some "dancing" involved 🕺
- Kids are doing alright. Daughter is a bit worried about her future. I was not thinking about that at her age at all 😝 Son is into computers, games, reading, programming, and experiments.
- Went family kayaking with my wife and son. Experienced pour rain and titanic-like sinking. It was fun 🛶

👷‍♂️ Commercial projects

- As a CTO walked Twindo.ai though the year. It went alright overall. We've adopted LLMs in a good way, got new clients and almost done with ISO 27001 certification.
- Formed a team to help https://speedvegas.com/ to fix issues with their Yii 1.1 app.
- BrightCoffee is doing alright as well but without growth. No expansion last year. Maybe this year...
👍307👏6🔥5
🎄2025 #2

🎸Hobbies

- 3D printing went to a whole new level. Bambu Lab X1C is an excellent device for just printing but I've managed to improve Ender 3 V3 SE frame rigidity, firmware, remote printing etc. so it works well and is very quiet. Learned how to print very small things such as jewelry and keycaps. Got a bit into OpenSCAD for simple things but not too much.
- Visited some music gigs: Hatters, Manapart, три вторых.
- Home automation via HomeAssistant is progressing. Got curtains. They open automatically at mornings. I like it.
- Created a profile at https://letterboxd.com/samdark/. Join if you like watching movies.

🎁 Projects

- The main focus was on Yii3.
- Decided not to restore YiiFeed and merge YiiPowered into yiiframework.com. Still thinking about the fate of yiiframework.ru.
- PER coding style 3.0

💝 Yii

- Helped Yii team to release Yii3! It is a huge milestone and we're not stopping there.
- Maintained Yii 2.0 and Yii 1.1.

✈️ Travel

- Moscow
- Saint Petersburg
- Sakhalin Island
- Kamchatka

Sakhalin and Kamchatka are very beautiful but quite tough. First time all the equipment prepared was actually needed.
👍15🔥74
🎄2025 #3

💻 Software

- Stuck to Linux, popOS. Not a "cosmic" one but the one with Gnome. Not sure about the upgrade. It is very comfortable.
- Still using Brave as my primary browser. No issues with it.
- Using LLMs a lot in development and overall. My favorite is Claude. Migrated from standalone VSCode-based IDEs to PhpStorm + WindSurf plugin.

🗣 Conferences, meetups and online

- Helped with HighLoad conferences as usual.
- PHP Russia didn't happen but Pyh did and it was awesome. Kudos to Valentin Udaltsov 🚀
- Overall gave some interesting talks. Worth checking slides and videos.

📚Books

- Project Phoenix. Recommended.
- Many fiction books among which I liked new Witcher and the Howl's Moving Castle most.

🙏My wishes for 2026

- Twindo to grow.
- Yii3 to get to general adoption, more tooling and a learning curve compared to the one of Yii2.
- Travel to cool new places.
👍21🔥118
С Рождеством!
38🎉27🍾10🎄31🤮1🙏1
🟡🤔Typing in Yii3

I haven't thought about it before, but it seems Yii3 is the most strictly typed framework in the whole PHP frameworks universe. Psalm level 1 (similar to PhpStan level 10).

It allows you to catch errors while developing and is another layer of automatic checks to watch for what the LLM agent is doing.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍38🔥204
🎁 Yii 2.0.54 released

This release was on hold for a month because of broken subsplit but Carsten found the reason and fixed it.

https://www.yiiframework.com/news/748/yii-2-0-54
👍268🎉2
Forwarded from Live PHP
🚀 Большой ежегодный опрос по PHP 🐘

🤘 Присоединяйся и помогай комьюнити становиться только лучше!

Мы запускаем очередной ежегодный опрос, чтобы выяснить, на каких технологиях мы работаем, чем живём и в каком направлении движемся. На этот раз командой Live PHP подготовили для вас улучшенную версию опроса, чтобы собрать самые актуальные данные и взглянуть на развитие PHP в 2025 году.

В прошлом году 1207 разработчиков поделились информацией о своих предпочтениях: какие версии PHP они используют, какие фреймворки любят и как относятся к ИИ.

📊 На этот раз мы посмотрели на опрос под другим углом и постарались сделать его ещё лучше! Присоединяйся к нашему анонимному опросу и дай знать, в каком направлении было бы интересно развиваться!

А ещё мы традиционно разыгрываем слонов. Хотя опрос анонимный, но если ты оставишь свой email, то сможешь поучаствовать в розыгрыше слона от канала Пых.

✍️ Проходи опрос и помоги собрать аналитику для русскоязычной PHP-тусовки!

По итогам сделаем подборки статей, докладов, каналов по PHP. Все результаты опубликуем на phpcommunity.ru

Сделай свой вклад уже сегодня!
Please open Telegram to view this post
VIEW IN TELEGRAM
👍15👌21