Files
dockersysmvc/resources/views/home/console-cli.blade.php
T
marco 27de6ac448 docs: update contact information and remove GitHub repository links
Replace GitHub links with direct email contact for system acquisition
across README.md and all home page Blade templates. Added
contato@syspanel.com.br as the primary contact method.
2026-09-04 16:00:42 -03:00

89 lines
3.3 KiB
PHP
Executable File

@extends('layout')
@section('title', 'Console CLI')
@section('content')
<div class="container">
<h2>Console CLI</h2>
<p>The SysMVC CLI console, based on Symfony Console, allows you to efficiently manage your project using command-line commands.</p>
<h3>Useful Commands</h3>
<ul>
<li><strong>php bin/console generate:app-key</strong> - Generates a new application key.</li>
<li><strong>php bin/console app:say-hello</strong> - Hello.</li>
</ul>
<h3>Extending with More Commands</h3>
<p>The Symfony Console allows you to create and extend custom commands. Here is an example of how to create a custom command:</p>
<pre>
<code>
// src/Command/SayHelloCommand.php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class SayHelloCommand extends Command
{
protected static $defaultName = 'app:say-hello';
protected function configure()
{
$this
->setDescription('Says hello.')
->setHelp('This command allows you to say hello...');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln('Hello from SysMVC!');
return Command::SUCCESS;
}
}
</code>
</pre>
<p>To register the command, add it to the service in the <code>config/services.yaml</code> file:</p>
<pre>
<code>
# config/services.yaml
services:
App\Command\SayHelloCommand:
tags: ['console.command']
</code>
</pre>
<p>Now you can execute the custom command:</p>
<pre>
<code>
$ php bin/console app:say-hello
</code>
</pre>
<p>For more information about available commands and how to create custom commands, check the <a href="https://symfony.com/doc/current/console.html" target="_blank">Symfony Console documentation</a>.</p>
</div>
<br><br>
<h2 class="mt-4">Contact</h2>
<p><strong>To obtain the system, please contact us by email: <a href="mailto:contato@syspanel.com.br">contato@syspanel.com.br</a></strong></p>
<p>If you're interested in SysMVC, get in touch:</p>
<ul>
<li>Email: <a href="mailto:syspanel@gmx.com">syspanel@gmx.com</a></li>
<li>WhatsApp: <a href="https://wa.me/5535992261684" target="_blank">+55 (35) 99226-1684</a></li>
</ul>
<hr class="my-5">
<h2 class="mt-4">&#128590; Support the Project</h2>
<p>If you find this project useful, consider supporting its development with a donation via PayPal:</p>
<p>
<a href="https://www.paypal.com/donate/?business=marcocosta@gmx.com&currency_code=USD" target="_blank">
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="Donate via PayPal">
</a>
</p>
</div>
@endsection