Skip to content

Commit

Permalink
Belajar upload PHP Library ke Repository Github
Browse files Browse the repository at this point in the history
  • Loading branch information
nullsec45 committed Aug 6, 2022
0 parents commit 069c8d4
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "library/coba-bikin-library",
"description": "Saya coba bikin library",
"type": "library",
"autoload": {
"psr-4": {
"Library\\CobaBikinLibrary\\": "src/"
}
},
"authors": [
{
"name": "Rama Fajar Fadhillah"
}
],
"require": {
"php":">=8.0"
}
}
20 changes: 20 additions & 0 deletions composer.lock

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

12 changes: 12 additions & 0 deletions src/Say.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
namespace Libray\CobaBikinLibrary\Customer;

class Say{
public function __construct(private string $name)
{

}
public function sayHello(string $name):string{
return "Hello $name, My name is $this->name";
}
}

0 comments on commit 069c8d4

Please sign in to comment.