Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulfheart committed Feb 6, 2021
1 parent c9ad12d commit 3e9dd50
Show file tree
Hide file tree
Showing 32 changed files with 168 additions and 533 deletions.
55 changes: 0 additions & 55 deletions .github/CONTRIBUTING.md

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/SECURITY.md

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/psalm.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/run-tests.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .php_cs.dist

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to `:package_name` will be documented in this file.
All notable changes to `laravel-mailto` will be documented in this file.

## 1.0.0 - 202X-XX-XX

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) :vendor_name <:author_email>
Copyright (c) wulfheart <dev@alexfwulf.de>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
70 changes: 20 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,46 @@
# :package_description
# Laravel-Mailto

[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_name/:package_name.svg?style=flat-square)](https://packagist.org/packages/:vendor_name/:package_name)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/:vendor_name/:package_name/run-tests?label=tests)](https://github.com/:vendor_name/:package_name/actions?query=workflow%3ATests+branch%3Amaster)
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_name/:package_name.svg?style=flat-square)](https://packagist.org/packages/:vendor_name/:package_name)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/wulfheart/laravel-mailto.svg?style=flat-square)](https://packagist.org/packages/wulfheart/laravel-mailto)
[![Total Downloads](https://img.shields.io/packagist/dt/wulfheart/laravel-mailto.svg?style=flat-square)](https://packagist.org/packages/wulfheart/laravel-mailto)

**Note:** Run `./configure-skeleton` to get started, or manually replace ```:author_name``` ```:author_username``` ```:author_email``` ```:vendor_name``` ```:package_name``` ```:package_description``` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](.github/CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can also run `configure-skeleton.sh` to do this automatically.

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Laravel-Mailto allows you to generate mailto-links with recipients, cc and bcc, subject and body. If an user clicks the link it opens the default mail editor prefilled with data.

## Support us

[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/package-skeleton-laravel.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/package-skeleton-laravel)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

## Installation

You can install the package via composer:

```bash
composer require :vendor_name/:package_name
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --provider="Spatie\Skeleton\SkeletonServiceProvider" --tag=":package_name-migrations"
php artisan migrate
```

You can publish the config file with:
```bash
php artisan vendor:publish --provider="Spatie\Skeleton\SkeletonServiceProvider" --tag=":package_name-config"
```

This is the contents of the published config file:

```php
return [
];
composer require wulfheart/laravel-mailto
```

## Usage

```php
$skeleton = new Spatie\Skeleton();
echo $skeleton->echoPhrase('Hello, Spatie!');
```blade
// some blade file
<a href="{{
mailto("jeffrey@example.com")
->cc(["ryan@example.com", "taylor@example.com"])
->bcc("freek@example.com")
->subject("Laravel")
->body("Hello Jeffrey,\n\nthis is a message.\n\nBest,\nAlex")
}}">
Send mail 📧
</a>
```

## Testing
## Result

```bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
![Result](./img/video.gif)

## Contributing

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
You are welcome to contribute.

## Credits

- [:author_name](https://github.com/:author_username)
- [Alex Wulf](https://github.com/wulfheart)
- [All Contributors](../../contributors)

## License
Expand Down
Loading

0 comments on commit 3e9dd50

Please sign in to comment.