For development and testing, you'll also need: curl, apcu.
composer require splash/phpcore
After installation, create the following structure in your project:
your-project/
├── local/
│ ├── Local.php # Your Local Class (entry point)
│ ├── Objects/ # Your Objects
│ │ └── ThirdParty.php
│ └── Widgets/ # Your Widgets (optional)
│ └── Stats.php
└── vendor/
└── splash/phpcore/
Splash always looks for the class Splash\Local\Local to initialize your connector. This namespace is mandatory.
Add it to your composer.json:
{
"autoload": {
"psr-4": {
"Splash\\Local\\": "local/"
}
}
}
Then run:
composer dump-autoload
Configure your Local Class to connect your application to Splash.
How can I help you explore Laravel packages today?