Toolverse
All skills

write-script-php

by windmill-labs

MUST use when writing PHP scripts.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
DevOps
Views
5

About this skill

MUST use when writing PHP scripts.

How to use

  1. Utwórz nowy plik PHP w swoim projekcie. Zacznij od otwarcia tagu PHP (<?php) i zdefiniuj funkcję main z parametrami odpowiadającymi danym, które chcesz przetwarzać. Funkcja powinna zwracać tablicę asocjacyjną z wynikami.

  2. Jeśli skrypt wymaga dostępu do zasobów (np. bazy danych, API), zdefiniuj klasy zasobów przed funkcją main. Zawsze sprawdź, czy klasa już istnieje, używając class_exists, aby uniknąć konfliktów. Parametry funkcji main będą automatycznie wypełniane zasobami z Windmill.

  3. Zadeklaruj wymagane biblioteki PHP jako komentarze na początku skryptu, przed funkcją main. Każdą zależność umieść w osobnej linii w formacie // require: nazwa-pakietu. Windmill automatycznie zainstaluje te pakiety.

  4. Po napisaniu skryptu uruchom wmill script generate-metadata w folderze zawierającym plik. Polecenie wygeneruje pliki .script.yaml i .lock opisujące strukturę skryptu i jego zależności.

  5. Wdróż skrypt na platformę Windmill, wykonując wmill sync push. Skrypt będzie dostępny w Windmill i gotowy do uruchamiania.

  6. Aby odkryć dostępne typy zasobów w Windmill, użyj wmill resource-type list --schema. Dzięki temu poznasz dokładne struktury zasobów, które możesz wykorzystać w swoich skryptach.

Related skills

streamlit

by sverzijl

When working with Streamlit web apps, data dashboards, ML/AI app UIs, interactive Python visualizations, or building data science applications with Python

DevOps
49161

azure-devops-rest-api

by Tiberriver256

Guide for working with Azure DevOps REST APIs and OpenAPI specifications. Use this skill when implementing new Azure DevOps API integrations, exploring API capabilities, understanding request/response formats, or referencing the official OpenAPI specifications from the

DevOps
995

chrome-devtools

by mrgoonie

Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.

DevOps
29141

proxmox-full

by openclaw

Complete Proxmox VE management - create/clone/start/stop VMs and LXC containers, manage snapshots, backups, storage, and templates. Use when user wants to manage Proxmox infrastructure, virtual machines, or containers.

DevOps
1449

drawio-diagrams-enhanced

by jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams,

DevOps
918943

docker-containerization

by openclaw

This skill should be used when containerizing applications with Docker, creating Dockerfiles, docker-compose configurations, or deploying containers to various platforms. Ideal for Next.js, React, Node.js applications requiring containerization for development, production, or

DevOps
1334