Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirmuxsin committed Jan 22, 2022
0 parents commit b9b354c
Show file tree
Hide file tree
Showing 12 changed files with 780 additions and 0 deletions.
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "milly/laragram",
"description": "Laravel package to develop telegram bot inside laravel project",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Milly\\Laragram\\": "src/"
}
},
"authors": [
{
"name": "Mirmuxsin",
"email": "[email protected]"
}
],
"require": {}
}
24 changes: 24 additions & 0 deletions src/Laragram.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Milly\Laragram;

use Illuminate\Support\Facades\Validator;

class Laragram
{

/**
* To receive updates from request
*
* @return array|\Illuminate\Contracts\Foundation\Application|\Illuminate\Http\Request|string
*/
public function update () {
$request = \request();
// $validate = $request->validate([
// 'update_id' => 'required|int',
// ]);


return $request;
}
}
18 changes: 18 additions & 0 deletions src/LaragramServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Milly\Laragram;

use Illuminate\Support\ServiceProvider;

class LaragramServiceProvider extends ServiceProvider
{
public function boot ()
{

}

public function register()
{
parent::register(); // TODO: Change the autogenerated stub
}
}
Empty file added src/Updates/Update.php
Empty file.
7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit3b33be303efde5a4a5629eded466b6cc::getLoader();
Loading

0 comments on commit b9b354c

Please sign in to comment.