PHAST - This is so coool. It is very fast. Dependency manager for PHP. jakovic.com/til/2026-11-13-p…
19
I spent an afternoon chasing "1 error" in a sync log, and the job was never actually broken. 🤯jakovic.com/til/2026-11-03-a…
2
18
Today’s reminder that sometimes you have to go back to basics: I had to compile PHP from source because Ondřej's packages were overloaded.
Wrote it up in my TIL: jakovic.com/til
2
63
After building two real Go projects, I finally have an opinion on project structure.
No unnecessary layers. No utils/ dumping ground. No interfaces just for the sake of it.
Here's what I've learned about structuring Go apps that stay maintainable.
👇 jakovic.com/articles/how-i-s…
11
I just left a review on PITAKA
★★★★★ Fast shipping! new.ipitaka.com?utm_source=j…
19
The best CS education is free.
MIT: materials from 2,500+ courses
Harvard: CS50
Stanford: ML courses
Cambridge: distributed systems lectures on YouTube
All links, plus one famous university I'd skip:
jakovic.com/articles/free-cs…
18
That's a wrap on PHP Package Development.
12 posts covering:
- Package basics + Composer setup
- Testing with PHPUnit/Pest
- Publishing to Packagist
- Laravel package integration
- Symfony bundle development
Full series on jakovic.com
If you build a package after reading this, tag me. I want to see it.
#php #opensource #laravel #symfony #packagedevelopment
30
Symfony bundles are more structured than Laravel packages.
- Bundle class
- DI Extension
- Configuration with TreeBuilder
- services.yaml
More verbose? Yes. More explicit? Also yes. Symfony makes you think about your architecture upfront.
PHP Package Development (11/12) on jakovic.com
#php #symfony #bundles
1
20
Testing Laravel packages without a Laravel app:
Orchestra Testbench gives you a full Laravel environment in your test suite.
Test routes, commands, views, config - everything, without a real project.
If it works in Testbench, it works in production.
PHP Package Development (10/12) on jakovic.com
#php #laravel #testing
13
Level up your Laravel package:
- Blade components for reusable UI
- Migrations that publish cleanly
- Artisan commands users can run
- Middleware for request handling
- Facades for clean syntax
TextToolkit::slugify() just hits different as a facade.
PHP Package Development (9/12) on jakovic.com
#php #laravel #webdev
1
14
Building a Laravel package? Start with the ServiceProvider.
class TextToolkitServiceProvider extends ServiceProvider
{
public function boot()
{
$this->publishes([...]);
}
}
Package discovery, config publishing, views - Laravel makes it smooth.
PHP Package Development (8/12) on jakovic.com
#php #laravel #packages
1
13
The driver pattern makes packages extensible:
$toolkit = new TextToolkit();
$toolkit->addDriver('markdown', new MarkdownDriver());
Users can swap implementations without touching your code.
This is how Laravel's filesystem supports S3, local, FTP from one API.
PHP Package Development (7/12) on jakovic.com
#php #designpatterns #architecture
10
Nobody installs a package with no README.
Quality checklist:
- Clear README with install + usage
- LICENSE file (MIT is fine)
- CHANGELOG for updates
- PHPStan for static analysis
- Pint for code style
- GitHub Actions for CI
First impressions matter on Packagist.
PHP Package Development (6/12) on jakovic.com
#php #opensource #codequality
1
17
From local code to composer require:
git tag v1.0.0
git push origin v1.0.0
Submit to Packagist. Done.
Semantic versioning matters:
- MAJOR: breaking changes
- MINOR: new features
- PATCH: bug fixes
Your package is now installable worldwide.
PHP Package Development (5/12) on jakovic.com
#php #packagist #composer #opensource
5
Your package has no tests? Then it has no users.
$this->assertEquals(
'hello-world',
TextToolkit::slugify('Hello World!')
);
PHPUnit or Pest - pick one, but test everything. Cover edge cases. Run them in CI.
Untested packages are liabilities.
PHP Package Development (4/12) on jakovic.com
#php #testing #phpunit #pest
18
Building a real package, not a tutorial toy.
TextToolkit::slugify('Hello World!');
// hello-world
TextToolkit::truncate('Long text here...', 50);
// Smart word-boundary truncation
Interfaces first. Implementation second. That's how you build packages people actually trust.
PHP Package Development (3/12) on jakovic.com
#php #cleancode #packagedevelopment
5
Setting up a PHP package from scratch:
mkdir text-toolkit && cd text-toolkit
composer init
The key files:
- composer.json (autoloading + metadata)
- src/ (your code)
- tests/ (your tests)
PSR-4 autoloading maps namespaces to directories. Get this right and everything else follows.
PHP Package Development (2/12) on jakovic.com
#php #composer #devtools
15
Stop copying that helper class between projects.
Build a package instead:
- Reusable across all your projects
- Versioned with Composer
- Testable in isolation
- Shareable with the community
New blog series: PHP Package Development (1/12) on jakovic.com
#php #composer #opensource #packagedevelopment
10
I've built two full interview prep courses - PHP and JavaScript.
200+ questions each. Not just answers - but WHY it's the answer. The posts you've seen here are just a taste.
PHP: jakovic.com/courses/php-inte…
JavaScript: jakovic.com/courses/javascri…
#php #javascript #interviewprep #career
3

