My First Composer Package

The package I’ve been building throughout this series is a simple API for calling REST API's against your ThoughtSpot cluster. Let’s walk through how to use it! Requirements This package is built to be used in Laravel applications and requires PHP 8.2. You’ll need the URL of...

If you’ve created a Laravel app before you may be used to using tools like Pest or PHPStan. These are great for testing the functionality of the app and readability of your code. However, these both require the structure of a Laravel app to run...

You’ve built a composer package that works great locally and you’d like others to see how great it is. But when the run composer require they can’t find it. That’s because it only exists on your computer and we need to publish it! Fortunately, this...

We now have somewhere to put our package code and a functional Laravel app to test it in live. There are skeleton packages that act as templates like this one, but there’s a benefit to doing it manually at least once. It’s like being forced...

Now that we have an app to test things, we can scaffold the composer package within it. First, let’s take a little detour and look at an example of what we’re trying to achieve. When any composer package is added using composer require package/name, it will...

Setting Up the Environment Let’s build a thing! Where to start? I need an app that has my working composer project installed. That way I can test the functionality as I build it. There’s several ways to build a local development environment. I personally use Laravel Herd, but...

One of the neatest things about humanity is how we lean on each other’s creativity and innovation. When we make something new, we don’t start completely from scratch. Even without a recipe, we have knowledge and tools from our predecessors that make crafting something original...

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072

×
Was this article helpful?
×

Love our blog? You should see our emails. Sign up for our newsletter!