Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom package from packagist #525

Open
wants to merge 2 commits into
base: DVorontsov/main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "supervoron/otus-php-pro",
"type": "project",
"autoload": {
"psr-4": {
"Supervoron\\OtusPhpPro\\": "src/"
}
},
"authors": [
{
"name": "Dmitriy Vorontsov",
"email": "[email protected]"
}
],
"require": {
"supervoron/formatter-composer-package": "^1.0"
}
}
55 changes: 55 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use supervoron\FormatterComposerPackage\StringFormatter;

require '../vendor/autoload.php';

$stringFormatter = new StringFormatter();
echo ($stringFormatter->toUpperCase('get it up'));
Loading