Skip to content

snippetify/programming-languages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming languages collection

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.