<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: STNDC</title>
    <description>The latest articles on Forem by STNDC (@stndc).</description>
    <link>https://forem.com/stndc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F877280%2F467bee5d-0025-4610-ba69-72838bb96008.jpeg</url>
      <title>Forem: STNDC</title>
      <link>https://forem.com/stndc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/stndc"/>
    <language>en</language>
    <item>
      <title>PHP miniMarkdown</title>
      <dc:creator>STNDC</dc:creator>
      <pubDate>Thu, 18 May 2023 01:56:48 +0000</pubDate>
      <link>https://forem.com/stndc/php-minimarkdown-49bn</link>
      <guid>https://forem.com/stndc/php-minimarkdown-49bn</guid>
      <description>&lt;p&gt;miniMakdown is a library written in PHP. It's simple markup that makes it easy to add formatting, links, and images to plain text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/stndc/minimarkdown" rel="noopener noreferrer"&gt;miniMarkdown&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use function &lt;code&gt;minimarkdown()&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php

include 'miniMarkdown.php';

$h1 = '# h1 Text';
echo minimarkdown($h1);

?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Headings
&lt;/h2&gt;

&lt;p&gt;To create a heading, add &lt;code&gt;#&lt;/code&gt; symbols before your heading text. The number of &lt;code&gt;#&lt;/code&gt; you use will determine the hierarchy level and typeface size of the heading.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# H1
## H2
### H3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Styling text
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Style    |  Sintaxis    | Example
---------------------------------------------------
bold     | ** **        | `**This is bold text**`
italic   | _ _          | `_This is italic text_`
positive | ++ ++        | `++This is positive text++`
negative | -- --        | `--This is negative text--`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Code fromat
&lt;/h2&gt;

&lt;p&gt;To format &lt;code&gt;code&lt;/code&gt; or text into its own distinct block, use backticks.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`Code format`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Link
&lt;/h2&gt;

&lt;p&gt;You can create an inline link by wrapping link text in brackets &lt;code&gt;[ ]&lt;/code&gt;, and then wrapping the URL in parentheses &lt;code&gt;( )&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Google](https://www.google.com)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Image
&lt;/h2&gt;

&lt;p&gt;You can display an image by adding &lt;code&gt;!&lt;/code&gt; and wrapping the alt text in &lt;code&gt;[ ]&lt;/code&gt;. Alt text is a short text equivalent of the information in the image. Then, wrap the link for the image in parentheses &lt;code&gt;()&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;![Alt](https://www.google.com/intl/en_ALL/images/logo.gif)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>php</category>
      <category>markdown</category>
    </item>
    <item>
      <title>Colors in PHP command line output</title>
      <dc:creator>STNDC</dc:creator>
      <pubDate>Wed, 15 Jun 2022 17:50:32 +0000</pubDate>
      <link>https://forem.com/stndc/colors-in-php-command-line-output-4ela</link>
      <guid>https://forem.com/stndc/colors-in-php-command-line-output-4ela</guid>
      <description>&lt;p&gt;It's always good to colorize the output of the command line. Give a custom style. In this case, you can use color codes on strings to color the output. One very important thing to note is that these colors will only work on the command line and not in your browser.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fttayrhxl3hfyseofyjhn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fttayrhxl3hfyseofyjhn.jpg" alt=" " width="640" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let's see the syntax:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;echo "\e[1;37;42mHello World\e[0m\n";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The above command returns "Hello World" in white font and green background. You can see that the first part of the string, &lt;strong&gt;\e&lt;/strong&gt;, is the escape character to open and close the string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[0;31;42m&lt;/strong&gt;, this is what sets the color (0;31) and background (42). This should be followed by the text that we are coloring.&lt;/p&gt;

&lt;p&gt;In Skater I use it to style when the &lt;code&gt;-help&lt;/code&gt; command is required.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpjrp4hecobdn3fyjiblz.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpjrp4hecobdn3fyjiblz.JPG" alt=" " width="800" height="546"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are few colors, but enough to give style to outings. I share the list of colors. See you soon!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Text Colors           Code
# ---------------------------
# Black                 0;30
# White                 1;37
# Dark Grey             1;30
# Red                   0;31
# Green                 0;32
# Brown                 0;33
# Yellow                1;33
# Blue                  0;34
# Magenta               0;35
# Cyan                  0;36
# Light Cyan            1;36
# Light Grey            0;37
# Light Red             1;31
# Light Green           1;32
# Light Blue            1;34
# Light Magenta         1;35

# Background Colors     Code
# ---------------------------
# Black                 40
# Red                   41
# Green                 42
# Yellow                43
# Blue                  44
# Magenta               45
# Cyan                  46
# Light Grey            47
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>php</category>
      <category>productivity</category>
      <category>terminal</category>
      <category>cmd</category>
    </item>
    <item>
      <title>CodeSkate</title>
      <dc:creator>STNDC</dc:creator>
      <pubDate>Wed, 15 Jun 2022 01:38:05 +0000</pubDate>
      <link>https://forem.com/stndc/codeskate-3k0o</link>
      <guid>https://forem.com/stndc/codeskate-3k0o</guid>
      <description>&lt;p&gt;After a lot of time and work with PHP, I never felt comfortable with frameworks.&lt;br&gt;
It was the reason I made mine. My little minimalist framework.&lt;br&gt;
I went against the MVC model&lt;br&gt;
&lt;strong&gt;CodeSkate&lt;/strong&gt; is based on a model of classes that interact with themes. And the connection to the database is instantiated from the class in the library container.&lt;br&gt;
For each class that is created, its theme must be created and that's it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skater&lt;/strong&gt; in the command client which at the moment allows you to create the files from the terminal.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5ou162iw7znb92r64ft.JPG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe5ou162iw7znb92r64ft.JPG" alt=" " width="800" height="546"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example: &lt;code&gt;php skater -class classname&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I don't know if anyone wants to use it, I don't care about that for now, but I'm going to share my work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/stndc/codeskate" rel="noopener noreferrer"&gt;https://github.com/stndc/codeskate&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
