Shelley will miss the rest of the preseason and the Flyers' first five regular-season games for the hit, which drew a five-minute major for boarding. He will be eligible to return for the Flyers' game Oct. 20 against Washington.
Immediately after the hit, Toronto's Jay Rosehill fought with Shelley, with both players earning five-minute fighting penalties and Shelley getting a game misconduct.
"Shelley hit Boyce squarely from behind into the glass," NHL senior vice president for player safety Brendan Shanahan said of the second-period hit. "Boyce's back was turned toward Shelley well before the contact, requiring that Shelley avoid or minimize the check. He did neither.
"Shelley's two suspensions last season weighed heavily in this decision," Shanahan added.
Shelley was suspended twice last season for four games and is considered a repeat offender under the league's collective bargaining agreement. He was also fined $67,073, which will be paid into the Players' Emergency Assistance Fund.
Boyce returned to the game in the third period and earned a 10-minute misconduct for tangling with Philadelphia's Scott Hartnell.
Information from The Associated Press was used in this report.