Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 65 | All time: 10,389 This week: 47 |
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 (91) |
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 (91) | / | 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 (91) | / | app | / | Console | / | Commands |
File | Role | Description |
---|---|---|
SendSubscriptionEmails.php | Class | Class source |
Files (91) | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (1 file, 1 directory) | ||||
Middleware (8 files) | ||||
Kernel.php | Class | Class source |
Files (91) | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Api (2 files) | ||||
Controller.php | Class | Class source |
Files (91) | / | app | / | Http | / | Controllers | / | Api |
File | Role | Description |
---|---|---|
UserController.php | Class | Class source |
WebsiteController.php | Class | Class source |
Files (91) | / | 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 (91) | / | 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 (91) | / | 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 (91) | / | 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 (91) | / | database |
File | Role | Description | ||
---|---|---|---|---|
factories (1 file) | ||||
migrations (9 files) | ||||
seeders (5 files) |
Files (91) | / | 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 (91) | / | 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 (91) | / | public |
File | Role | Description |
---|---|---|
.htaccess | Data | Auxiliary data |
index.php | Class | Class source |
robots.txt | Doc. | Documentation |
web.config | Data | Auxiliary data |
Files (91) | / | resources |
Files (91) | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files (91) | / | 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 (91) | / | resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
mail (1 file) | ||||
welcome.blade.php | Aux. | Auxiliary script |
Files (91) | / | resources | / | views | / |
File | Role | Description |
---|---|---|
new-post-email.blade.php | Aux. | Auxiliary script |
Files (91) | / | 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 (91) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (1 file) | ||||
Unit (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
TestCase.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.