Skip to content

Commit 06b7a2a

Browse files
committed
base amp version
0 parents  commit 06b7a2a

27 files changed

+814
-0
lines changed

.github/workflows/php.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Laravel
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
laravel-tests:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
18+
laravel: ['6.*','7.*','8.*','9.*', '10.*', '11.*']
19+
# exclude php 8.1 with laravel 11.* and php 8.3 with laravel 9.*
20+
exclude:
21+
- php: 8.1
22+
laravel: 11.*
23+
- php: 8.3
24+
laravel: 9.*
25+
- php: 8.0
26+
laravel: 11.*
27+
- php: 8.0
28+
laravel: 10.*
29+
- php: 7.2
30+
laravel: 11.*
31+
- php: 7.2
32+
laravel: 10.*
33+
- php: 7.2
34+
laravel: 9.*
35+
- php: 7.2
36+
laravel: 8.*
37+
- php: 7.2
38+
laravel: 7.*
39+
- php: 7.3
40+
laravel: 11.*
41+
- php: 7.3
42+
laravel: 10.*
43+
- php: 7.3
44+
laravel: 9.*
45+
- php: 7.4
46+
laravel: 11.*
47+
- php: 7.4
48+
laravel: 10.*
49+
- php: 7.4
50+
laravel: 9.*
51+
52+
name: 'PHP ${{ matrix.php }} / Laravel ${{ matrix.laravel }}'
53+
54+
steps:
55+
- uses: actions/checkout@master
56+
57+
# Configure PHP
58+
- name: Select PHP version
59+
uses: shivammathur/setup-php@master
60+
with:
61+
php-version: '${{ matrix.php }}'
62+
extensions: mbstring, pdo_sqlite, fileinfo, gd
63+
coverage: none
64+
65+
# Configure NPM
66+
- uses: actions/setup-node@v3
67+
with:
68+
node-version: '20.x'
69+
70+
# Install PHP dependencies
71+
- name: Install Composer dependencies
72+
run: composer require "illuminate/support:${{ matrix.laravel }}"
73+
74+
# Display installed laravel version
75+
- name: Show laravel version
76+
run: composer show laravel/framework
77+
78+
# # Install NPM dependencies
79+
# - name: Install Dependencies
80+
# run: npm install
81+
82+
# # Build static assets
83+
# - name: Compile Assets
84+
# run: npm run prod
85+
86+
# Run phpunit tests
87+
- name: Run tests
88+
run: ./vendor/bin/phpunit

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) [2024] [Nexa Merchant]
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

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# NexaMerchant/Amp
2+
3+
[![Build Status](https://github.com/NexaMerchant/Amp/workflows/Laravel/badge.svg)](https://github.com/NexaMerchant/Amp)
4+
[![Release](https://img.shields.io/github/release/NexaMerchant/Amp.svg?style=flat-square)](https://github.com/NexaMerchant/Amp/releases)
5+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/Nexa-Merchant/Amp.svg?style=flat-square)](https://packagist.org/packages/Nexa-Merchant/Amp)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/Nexa-Merchant/Amp.svg?style=flat-square)](https://packagist.org/packages/Nexa-Merchant/Amp)
7+
8+
# How to Install
9+
10+
```
11+
composer require nexa-merchant/amp
12+
```
13+
14+
# How to Uninstall
15+
16+
```
17+
composer remove nexa-merchant/amp
18+
```
19+
20+
# How to Update
21+
22+
```
23+
composer update nexa-merchant/amp
24+
```
25+
26+
# How to Publish
27+
28+
```
29+
php artisan vendor:publish --provider="NexaMerchant\Amp\Providers\AmpServiceProvider"
30+
```
31+
32+
# How to Support
33+
34+
If you need support, please contact us at [email protected] or open an issue on GitHub.
35+
36+
# How to Contribute
37+
38+
If you want to contribute to this package, please open a pull request on GitHub.
39+
40+
# How to Report a Bug
41+
42+
If you find a bug, please open an issue on GitHub.
43+
44+
# How to Request a Feature
45+
46+
If you have an idea for a new feature, please open an issue on GitHub.
47+
48+

composer.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "nexa-merchant/amp",
3+
"license": "MIT",
4+
"type": "library",
5+
"description" : "Amp Apps",
6+
"authors": [
7+
{
8+
"name": "Steve",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"laravel/framework": "~6.0||~7.0||~8.0||~9.0||~10.0||~11.0"
14+
},
15+
"require-dev": {
16+
"phpunit/phpcov": ">=6.0",
17+
"phpunit/phpunit": ">=8.0",
18+
"laravel/framework": "~6.0||~7.0||~8.0||~9.0||~10.0||~11.0"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"NexaMerchant\\Amp\\": "src/"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"NexaMerchant\\Amp\\Tests\\": "tests/"
28+
}
29+
},
30+
"extra": {
31+
"laravel": {
32+
"providers": [
33+
"NexaMerchant\\Amp\\Providers\\AmpServiceProvider"
34+
],
35+
"aliases": {}
36+
}
37+
},
38+
"homepage": "https://nexamerchant.github.io/docs/",
39+
"minimum-stability": "dev"
40+
}

docs/index.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Nexa Merchant Amp
2+
3+
Amp is a package for Nexa Merchant.
4+
5+
## How to Install
6+
7+
```
8+
composer require nexa-merchant/amp
9+
```
10+
11+
## How to Use
12+
13+
[How to Use Amp](docs/how-to-use.md)
14+

phpunit.xml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="tests/bootstrap.php"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Amp Test Suite">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
<logging>
19+
<log type="junit" target="build/report.junit.xml"/>
20+
<log type="coverage-html" target="build/coverage" />
21+
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/>
22+
</logging>
23+
<filter>
24+
<whitelist processUncoveredFilesFromWhitelist="true">
25+
<directory suffix=".php">./src/</directory>
26+
</whitelist>
27+
</filter>
28+
<php>
29+
<env name="APP_ENV" value="testing"/>
30+
<env name="APP_DEBUG" value="true"/>
31+
<env name="APP_URL" value="http://localhost"/>
32+
<env name="APP_KEY" value="base64:M1igrxNfAWlVGyxxDholHqvVqvtPjAzCoJ+2/ILAVPw="/>
33+
</php>
34+
</phpunit>

src/Config/Amp.php

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?php
2+
/**
3+
*
4+
* This file is auto generate by Nicelizhi\Apps\Commands\Create
5+
* @author Steve
6+
* @date 2024-11-29 08:51:07
7+
* @link https://github.com/xxxl4
8+
*
9+
*/
10+
return [
11+
/**
12+
*
13+
* The name of the package
14+
*/
15+
'name' => 'Amp',
16+
/**
17+
*
18+
* The version of the package
19+
*/
20+
'version' => '1.0.0',
21+
/**
22+
*
23+
* The version number of the package
24+
*/
25+
'versionNum' => '100',
26+
27+
/**
28+
*
29+
* Enabled
30+
*/
31+
'enable' => env('Amp.ENABLED', true),
32+
33+
/*
34+
* Composer Package Name
35+
*/
36+
'composer' => 'nexa-merchant/amp',
37+
38+
/**
39+
*
40+
* The description of the package
41+
*/
42+
'description' => '',
43+
44+
/**
45+
*
46+
* The author of the package
47+
*/
48+
'author' => 'Steve',
49+
50+
/**
51+
*
52+
* The email of the author
53+
*/
54+
'email' => '[email protected]',
55+
56+
/**
57+
*
58+
* The homepage of the package
59+
*/
60+
'homepage' => 'https://github.com/xxl4',
61+
62+
/**
63+
*
64+
* The keywords of the package
65+
*/
66+
'keywords' => [],
67+
68+
/**
69+
*
70+
* The license of the package
71+
*/
72+
'license' => 'MIT',
73+
74+
/**
75+
*
76+
* The type of the package
77+
*/
78+
'type' => 'library',
79+
80+
/**
81+
*
82+
* The support of the package
83+
*/
84+
'support' => [
85+
'email' => '[email protected]',
86+
'issues' => 'https://github.com/xxl4'
87+
],
88+
];

src/Config/acl.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
*
4+
* This file is auto generate by Nicelizhi\Apps\Commands\Create
5+
* @author Steve
6+
* @date 2024-11-29 08:51:07
7+
* @link https://github.com/xxxl4
8+
*
9+
*/
10+
return [
11+
12+
];

src/Config/menu.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
*
4+
* This file is auto generate by Nicelizhi\Apps\Commands\Create
5+
* @author Steve
6+
* @date 2024-11-29 08:51:07
7+
* @link https://github.com/xxxl4
8+
*
9+
*/
10+
return [
11+
/**
12+
* Amp Dashboard.
13+
*/
14+
[
15+
'key' => 'Amp',
16+
'name' => 'amp::app.amp.demo',
17+
'route' => 'amp.admin.example.demo',
18+
'sort' => 1,
19+
'icon' => 'icon-dashboard',
20+
]
21+
];

0 commit comments

Comments
 (0)