PHP code example of yousif-nahi / silkwire
1. Go to this page and download the library: Download yousif-nahi/silkwire library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yousif-nahi / silkwire example snippets
use YousifNahi\SilkWire\Concerns\WithSilkWire;
class MyComponent extends Component
{
use WithSilkWire;
public function save(): void
{
// ... save logic
$this->silkClose('my-sheet');
}
}
bash
php artisan vendor:publish --tag=silkwire-js --tag=silkwire-entry