snippetify/programming-languages

Programming languages collection in php

1.1.0 2020-07-14 20:46 UTC

This package is auto-updated.

Last update: 2024-04-15 05:44:03 UTC


README

This package contains a collection of programming languages

What it does

This library allows you

  1. To get a list of all programming languages
  2. To test if a language exists in the collection
  3. To count the number of languages available

How to use it

$ composer require snippetify/programming-languages
use Snippetify\ProgrammingLanguages\Languages;

// Get all languages
$languages = Languages::create()->all();

// Test if language exists
$exists = Languages::create()->exists('php');

// Count available languages
$count = Languages::create()->count();
You can use facade instead
use Snippetify\ProgrammingLanguages\Facades\Languages;

// Get all languages
$languages = Languages::all();

// Test if language exists
$exists = Languages::exists('php');

// Count available languages
$count = Languages::count();

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Credits

  1. Evens Pierre

License

The MIT License (MIT). Please see License File for more information.