PHP code example of vortos / vortos-iac
1. Go to this page and download the library: Download vortos/vortos-iac 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/ */
vortos / vortos-iac example snippets
#[InfraConfig]
final class AppInfraConfig
{
#[RegisterTerraformExporter]
public function kafkaTopics(): KafkaTopicsExporterDefinition
{
return KafkaTopicsExporterDefinition::create('kafka-topics')
->provider(KafkaProvider::Confluent)
->clusterRef('confluent_kafka_cluster.main')
->outputFile('infra/kafka_topics.tf.json');
}
}
bash
php bin/console vortos:make:infra-config --provider=confluent