Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (91) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2021-11-21 (12 days ago) | Not yet rated by the users | Total: 27 This week: 3 | All time: 10,381 This week: 60 |
Version | License | PHP version | Categories | |||
inisev-sub 1.0 | Shareware | 5 | Email, PHP 5, Databases, Libraries, W... |
Description | Author | ||||||||||||||||
This package implements an API to manage newsletter subscriptions. Innovation Award
|
|
Email subscription system
Clone repo
git clone git@github.com:ahmard/inisev-sub.git
Install composer packages
composer install
Generate app secret key
php artisan key:generate
Edit .env file to provide necessary config
Run migrations
php artisan migrate --seed
Start the server
php artisan serve
You will then send json payload to each below endpoints.<br/> I use PhpStorm to send request to the endpoints, you can find the request config here
POST http://localhost:8000/api/users
{
"name": "Jane",
"email": "jane@anonym.net",
"password": "1234"
}
POST http://localhost:8000/api/websites
{
"user": 1,
"website_name": "Inisev",
"website_domain": "inisev.com"
}
POST http://localhost:8000/api/websites/posts
{
"user": 1,
"post_title": "Post Number 1",
"post_content": "Post content should be here"
}
POST http://localhost:8000/api/websites/subscriptions
{
"user": 1,
"website": 1
}
Execute below command to send email to subscribers
php artisan subs:send --post=1 --site=1
Files |
File | Role | Description | ||
---|---|---|---|---|
app (1 file, 7 directories) | ||||
bootstrap (1 file) | ||||
config (15 files) | ||||
database (3 directories) | ||||
public (4 files) | ||||
resources (3 directories) | ||||
routes (4 files) | ||||
tests (2 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
.styleci.yml | Data | Auxiliary data | ||
artisan | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
requests.http | Data | Auxiliary data | ||
server.php | Aux. | Auxiliary script | ||
webpack.mix.js | Data | Auxiliary data |
Files | / | app |
File | Role | Description | ||
---|---|---|---|---|
Console (1 file, 1 directory) | ||||
Exceptions (1 file) | ||||
Http (1 file, 2 directories) | ||||
Jobs (1 file) | ||||
Mail (1 file) | ||||
Models (5 files) | ||||
Providers (5 files) | ||||
JsonResponseDecorator.php | Class | Class source |
Files | / | app | / | Console | / | Commands |
File | Role | Description |
---|---|---|
SendSubscriptionEmails.php | Class | Class source |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (1 file, 1 directory) | ||||
Middleware (8 files) | ||||
Kernel.php | Class | Class source |
Files | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Api (2 files) | ||||
Controller.php | Class | Class source |
Files | / | app | / | Http | / | Controllers | / | Api |
File | Role | Description |
---|---|---|
UserController.php | Class | Class source |
WebsiteController.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
PreventRequestsDuringMaintenance.php | Class | Class source |
RedirectIfAuthenticated.php | Class | Class source |
TrimStrings.php | Class | Class source |
TrustHosts.php | Class | Class source |
TrustProxies.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files | / | app | / | Models |
File | Role | Description |
---|---|---|
DeliveredSubscription.php | Class | Class source |
Post.php | Class | Class source |
Subscription.php | Class | Class source |
User.php | Class | Class source |
Website.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
BroadcastServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Auxiliary script |
cache.php | Aux. | Auxiliary script |
cors.php | Aux. | Auxiliary script |
database.php | Aux. | Auxiliary script |
filesystems.php | Aux. | Auxiliary script |
hashing.php | Aux. | Auxiliary script |
logging.php | Class | Class source |
mail.php | Aux. | Auxiliary script |
queue.php | Aux. | Auxiliary script |
sanctum.php | Class | Class source |
services.php | Aux. | Auxiliary script |
session.php | Aux. | Auxiliary script |
view.php | Aux. | Auxiliary script |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...rd_resets_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
2019_12_14_000001_...ss_tokens_table.php | Class | Class source |
2021_11_14_070125_..._websites_table.php | Class | Class source |
2021_11_14_070234_...criptions_table.php | Class | Class source |
2021_11_14_070515_create_posts_table.php | Class | Class source |
2021_11_14_073732_create_jobs_table.php | Class | Class source |
2021_11_14_074217_...criptions_table.php | Class | Class source |
Files | / | database | / | seeders |
File | Role | Description |
---|---|---|
DatabaseSeeder.php | Class | Class source |
PostSeeder.php | Class | Class source |
SubscriptionSeeder.php | Class | Class source |
UserSeeder.php | Class | Class source |
WebsiteSeeder.php | Class | Class source |
Files | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
web.config | Data | Auxiliary data |
Files | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files | / | resources | / | lang | / | en |
File | Role | Description |
---|---|---|
auth.php | Aux. | Auxiliary script |
pagination.php | Aux. | Auxiliary script |
passwords.php | Aux. | Auxiliary script |
validation.php | Aux. | Auxiliary script |
Files | / | resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
mail (1 file) | ||||
welcome.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / |
File | Role | Description |
---|---|---|
new-post-email.blade.php | Aux. | Auxiliary script |
Files | / | routes |
File | Role | Description |
---|---|---|
api.php | Class | Class source |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Aux. | Auxiliary script |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (1 file) | ||||
Unit (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.