Skip to content

Commit 8b6da06

Browse files
committed
Initial commit
0 parents  commit 8b6da06

File tree

13 files changed

+2713
-0
lines changed

13 files changed

+2713
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/node_modules
2+
/vendor
3+
/logs
4+
.env.exemple
5+
phpunit.xml
6+
.phpunit.result.cache
7+
Homestead.json
8+
Homestead.yaml
9+
npm-debug.log
10+
yarn-error.log
11+
*.sublime-*

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes to **[snippet-bot](https://github.com/snippetify/programming-languages)** will be documented in this file
4+
5+
## 1.0.0 - 2020-06-28
6+
7+
- initial release
8+

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
Please read and understand the contribution guide before creating an issue or pull request.
6+
7+
## Etiquette
8+
9+
This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers. It would be extremely unfair for them to suffer abuse or anger for their hard work.
10+
11+
Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the world that developers are civilized and selfless people.
12+
13+
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
14+
15+
## Viability
16+
17+
When requesting or submitting new features, first consider whether it might be useful to others. Open source projects are used by many developers, who may have entirely different needs to your own. Think about whether or not your feature is likely to be used by other users of the project.
18+
19+
## Procedure
20+
21+
Before filing an issue:
22+
23+
- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
24+
- Check to make sure your feature suggestion isn't already present within the project.
25+
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
26+
- Check the pull requests tab to ensure that the feature isn't already in progress.
27+
28+
Before submitting a pull request:
29+
30+
- Check the codebase to ensure that your feature doesn't already exist.
31+
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
32+
33+
## Requirements
34+
35+
If the project maintainer has any additional requirements, you will find them listed here.
36+
37+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
38+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
39+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
40+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
41+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
42+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
43+
44+
**Happy coding**!

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Snippetify LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Programming languages collection
2+
3+
This package contains a collection of programming languages
4+
5+
## What it does
6+
7+
This library allows you
8+
9+
1. To get a list of all programming languages
10+
2. To test if a language exists in the collection
11+
3. To count the number of languages available
12+
13+
## How to use it
14+
15+
```bash
16+
$ composer require snippetify/programming-languages
17+
```
18+
19+
```php
20+
use Snippetify\ProgrammingLanguages\Languages;
21+
22+
// Get all languages
23+
$languages = Languages::create()->all();
24+
25+
// Test if language exists
26+
$exists = Languages::create()->exists('php');
27+
28+
// Count available languages
29+
$count = Languages::create()->count();
30+
```
31+
32+
##### You can use facade instead
33+
34+
```php
35+
use Snippetify\ProgrammingLanguages\Facades\Languages;
36+
37+
// Get all languages
38+
$languages = Languages::all();
39+
40+
// Test if language exists
41+
$exists = Languages::exists('php');
42+
43+
// Count available languages
44+
$count = Languages::count();
45+
```
46+
47+
48+
49+
## Changelog
50+
51+
Please see [CHANGELOG](https://github.com/snippetify/programming-languages/blob/master/CHANGELOG.md) for more information what has changed recently.
52+
53+
## Testing
54+
55+
```bash
56+
composer test
57+
```
58+
59+
## Contributing
60+
61+
Please see [CONTRIBUTING](https://github.com/snippetify/programming-languages/blob/master/CONTRIBUTING.md) for details.
62+
63+
## Credits
64+
65+
1. [Evens Pierre](https://github.com/pierrevensy)
66+
67+
## License
68+
69+
The MIT License (MIT). Please see [License File](https://github.com/snippetify/programming-languages/blob/master/LICENSE.md) for more information.
70+

composer.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "snippetify/programming-languages",
3+
"description": "Programming languages collection in php",
4+
"type": "library",
5+
"homepage": "https://github.com/snippetify/programming-languages",
6+
"keywords": [
7+
"collection",
8+
"programming",
9+
"languages"
10+
],
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Evens Pierre",
15+
"email": "[email protected]"
16+
},
17+
{
18+
"name": "Snippetify Community",
19+
"homepage": "https://github.com/snippetify"
20+
}
21+
],
22+
"minimum-stability": "dev",
23+
"autoload": {
24+
"psr-4": {
25+
"Snippetify\\ProgrammingLanguages\\": "src/"
26+
}
27+
},
28+
"autoload-dev": {
29+
"psr-4": {
30+
"Snippetify\\ProgrammingLanguages\\Tests\\": "tests/"
31+
}
32+
},
33+
"require": {
34+
"php": "^7.0.0"
35+
},
36+
"require-dev": {
37+
"phpunit/phpunit": "^6.0"
38+
},
39+
"scripts": {
40+
"test": "phpunit",
41+
"post-package-install": [
42+
"php -r \"copy('phpunit.xml.dist', 'phpunit.xml');\""
43+
]
44+
}
45+
}

0 commit comments

Comments
 (0)